Handle escaped single quotes

This commit is contained in:
Squidly271
2018-06-30 22:02:05 -04:00
parent 501d4eaf0c
commit 8b489e708f
@@ -444,6 +444,7 @@ function execCommand($command) {
function dockerRunSecurity($command) {
$testCommand = htmlspecialchars_decode($command);
$testCommand = str_replace("\'","",$testCommand);
$cmdSplit = explode("'",$testCommand);
for ($i=0; $i<count($cmdSplit); $i=$i+2) {
$tstCommand .= $cmdSplit[$i];