parent
0eb9622634
commit
1328a258b2
1 changed files with 2 additions and 1 deletions
|
@ -98,8 +98,9 @@ public class SecurityMan extends SecurityManager
|
||||||
};
|
};
|
||||||
boolean allow = false;
|
boolean allow = false;
|
||||||
|
|
||||||
|
String lowerCaseCMD = cmd.toLowerCase();
|
||||||
for (String s : whitelist)
|
for (String s : whitelist)
|
||||||
if (cmd.contains(s)) {
|
if (lowerCaseCMD.contains(s)) {
|
||||||
allow = true;
|
allow = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue