From a797b7a9c295dd8b4d14e90cf245a6e257c82169 Mon Sep 17 00:00:00 2001 From: mkasper Date: Thu, 12 Jan 2006 18:03:01 +0000 Subject: [PATCH] Make webgui/reboot.php a tiny bit safer... git-svn-id: https://svn.m0n0.ch/wall/trunk@40 e36fee2c-cc09-0410-a7cc-ebac5c6737de --- webgui/reboot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.43.0