Security Manager Fix

Fixes #246
This commit is contained in:
Konloch 2021-07-19 05:28:59 -07:00
parent 0eb9622634
commit 1328a258b2

View file

@ -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;
}