From 0c91d27a7086dce45c42d9d7b684bf4cdf0e2bd9 Mon Sep 17 00:00:00 2001 From: TimZ99 Date: Tue, 10 Dec 2019 19:51:20 +0100 Subject: [PATCH] Fixed Error QUERY_STRING on sign in Added default value for QUERY_STRING. --- src/psm/Module/User/Controller/LoginController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/psm/Module/User/Controller/LoginController.php b/src/psm/Module/User/Controller/LoginController.php index 2b9925b8..09ceb4db 100644 --- a/src/psm/Module/User/Controller/LoginController.php +++ b/src/psm/Module/User/Controller/LoginController.php @@ -55,7 +55,11 @@ class LoginController extends AbstractController { if ($result) { // success login, redirect - header('Location: '.psm_build_url($_SERVER['QUERY_STRING'])); + header('Location: '. + psm_build_url( + empty($_SERVER["QUERY_STRING"]) ? null : $_SERVER["QUERY_STRING"] + ) + ); die(); } else { $this->addMessage(psm_get_lang('login', 'error_login_incorrect'), 'error');