From: mkasper Date: Thu, 12 Jan 2006 18:03:01 +0000 (+0000) Subject: Make webgui/reboot.php a tiny bit safer... X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a797b7a9c295dd8b4d14e90cf245a6e257c82169;p=m0n0chwall.git Make webgui/reboot.php a tiny bit safer... git-svn-id: https://svn.m0n0.ch/wall/trunk@40 e36fee2c-cc09-0410-a7cc-ebac5c6737de --- diff --git a/webgui/reboot.php b/webgui/reboot.php index 11b9f88..76561a3 100644 --- a/webgui/reboot.php +++ b/webgui/reboot.php @@ -33,7 +33,7 @@ $pgtitle = array("Diagnostics", "Reboot system"); require("guiconfig.inc"); if ($_POST) { - if ($_POST['Submit'] != " No ") { + if ($_POST['Submit'] == " Yes ") { system_reboot(); $rebootmsg = "The system is rebooting now. This may take one minute."; } else {