diff --git a/web/index.php b/web/index.php index 93a5625..e732522 100644 --- a/web/index.php +++ b/web/index.php @@ -117,6 +117,9 @@ if(isset($_REQUEST['mode'])){ foreach(array_keys($_REQUEST) as $rkey){ if ($rkey!="mode"){ $rvalue = clean($_REQUEST[$rkey]); + if ($rvalue == "x86_64"){ + $rvalue = "qemu-system-x86_64"; + } $sqlc .= "$rkey,"; $sqlv .= "'$rvalue',"; } @@ -134,6 +137,9 @@ if(isset($_REQUEST['mode'])){ foreach(array_keys($_REQUEST) as $rkey){ if (($rkey!="mode")&&($rkey!="editid")){ $rvalue = clean($_REQUEST[$rkey]); + if ($rvalue == "x86_64"){ + $rvalue = "qemu-system-x86_64"; + } $sql .= " $rkey='$rvalue',"; } }