verify return_uri is not empty for redirection

This commit is contained in:
Thomas Rubini 2023-01-26 17:04:57 +01:00
parent b20cc3eb21
commit d62628d0d9
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -27,7 +27,7 @@ final class UserController
}
private function redirectToPreviousPage(Array $A_postParams = null){
if (isset($A_postParams["return_uri"])) {
if (isset($A_postParams["return_uri"]) && !empty($A_postParams["return_uri"])) {
header("Location: ".$A_postParams["return_uri"]);
} else {
header("Location: /");