only append cd=yes, if there is not already a cd value

This commit is contained in:
Ralf Becker 2019-04-04 12:23:03 +02:00
parent ea0bc60ba5
commit 7e5d5c3d97

View File

@ -330,8 +330,12 @@ else
else
{
list($forward,$extra_vars) = explode('?',$forward,2);
// 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) {
// login requuest does not come from login.php