From b9730d9bf733de53aa9cdb15630a049f65adf2d9 Mon Sep 17 00:00:00 2001 From: Bsian Date: Wed, 30 Oct 2019 20:40:57 +0000 Subject: [PATCH] Actually fix the security vuln --- src/commands/eval.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/eval.ts b/src/commands/eval.ts index 72066f1..4cd0d2e 100644 --- a/src/commands/eval.ts +++ b/src/commands/eval.ts @@ -32,9 +32,9 @@ export default class Eval extends Command { evaled = error.stack; } - evaled = evaled.replace(RegExp(this.client.config.prefix, 'gi'), 'juul'); - evaled = evaled.replace(RegExp(this.client.config.emailPass, 'gi'), 'juul'); - evaled = evaled.replace(RegExp(this.client.config.cloudflare, 'gi'), 'juul'); + evaled = evaled.replace(new RegExp(this.client.config.prefix, 'gi'), 'juul'); + evaled = evaled.replace(new RegExp(this.client.config.emailPass, 'gi'), 'juul'); + evaled = evaled.replace(new RegExp(this.client.config.cloudflare, 'gi'), 'juul'); const display = this.client.util.splitString(evaled, 1975);