From e3a594f3e78ed1c56a78496e1271fae74bf33ce8 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Fri, 19 Feb 2016 16:09:50 +0100 Subject: [PATCH] do not post configuration form when nothing is selected, fixes #1595 Signed-off-by: Michael Kaufmann (d00p) --- admin_configfiles.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin_configfiles.php b/admin_configfiles.php index 9e4edceb..4dbccbba 100644 --- a/admin_configfiles.php +++ b/admin_configfiles.php @@ -43,9 +43,9 @@ if ($userinfo['change_serversettings'] == '1') { ); // get distro from URL param - $distribution = isset($_GET['distribution']) ? $_GET['distribution'] : ""; - $service = isset($_GET['service']) ? $_GET['service'] : ""; - $daemon = isset($_GET['daemon']) ? $_GET['daemon'] : ""; + $distribution = (isset($_GET['distribution']) && $_GET['distribution'] != 'choose') ? $_GET['distribution'] : ""; + $service = (isset($_GET['service']) && $_GET['service'] != 'choose') ? $_GET['service'] : ""; + $daemon = (isset($_GET['daemon']) && $_GET['daemon'] != 'choose') ? $_GET['daemon'] : ""; $distributions_select = ""; $services_select = ""; $daemons_select = "";