From 1328a258b234ebc3d6a7e60dc3a86de2ad69163a Mon Sep 17 00:00:00 2001 From: Konloch Date: Mon, 19 Jul 2021 05:28:59 -0700 Subject: [PATCH] Security Manager Fix Fixes #246 --- .../the/bytecode/club/bytecodeviewer/util/SecurityMan.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java index 33736577..daff2666 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java @@ -98,8 +98,9 @@ public class SecurityMan extends SecurityManager }; boolean allow = false; + String lowerCaseCMD = cmd.toLowerCase(); for (String s : whitelist) - if (cmd.contains(s)) { + if (lowerCaseCMD.contains(s)) { allow = true; break; }