mirror of
https://github.com/unraid/webgui.git
synced 2026-04-22 18:19:14 -05:00
Handle escaped single quotes
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user