Merge pull request #129 from ThomasRubini/return_uri_empty

This commit is contained in:
Thomas Rubini 2023-01-26 17:06:29 +01:00 committed by GitHub
commit 142f431191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: /");