From 2e43cf95b9fea32ff6310642bd90541e6a55362a Mon Sep 17 00:00:00 2001 From: Roy Chaudhuri Date: Mon, 17 Sep 2018 15:45:42 +0100 Subject: [PATCH] Fix for bug #68, exit after redirect response when URI parameter is received by index.php --- htdocs/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/index.php b/htdocs/index.php index d2113b7..56d8676 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -120,8 +120,10 @@ if (! $config = check_config($app['config_file'])) { $_SESSION[APPCONFIG] = $config; } -if ($uri = get_request('URI','GET')) +if ($uri = get_request('URI','GET')) { header(sprintf('Location: cmd.php?%s',base64_decode($uri))); + exit; +} if (! preg_match('/^([0-9]+\.?)+/',app_version())) { system_message(array(