From 7e5d5c3d979ca50704867812e89f16ea2ae4fa0a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 4 Apr 2019 12:23:03 +0200 Subject: [PATCH] only append cd=yes, if there is not already a cd value --- login.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/login.php b/login.php index d3be9b0c20..950543dac8 100755 --- a/login.php +++ b/login.php @@ -330,7 +330,11 @@ else else { list($forward,$extra_vars) = explode('?',$forward,2); - $extra_vars .= ($extra_vars ? '&' : '').'cd=yes'; + // only append cd=yes, if there is not already a cd value! + if (strpos($extra_vars, 'cd=') === false) + { + $extra_vars .= ($extra_vars ? '&' : '').'cd=yes'; + } } if(strpos($_SERVER['HTTP_REFERER'], $_SERVER['REQUEST_URI']) === false) {