From 3224281ec404c1180413828ca5d54a00c3980f89 Mon Sep 17 00:00:00 2001 From: mad Date: Sun, 12 Aug 2018 16:05:37 +0200 Subject: [PATCH] bootoption edit on db update --- web/index.php | 6 ++++++ 1 file changed, 6 insertions(+) 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',"; } }