verify return_uri is not empty for redirection
This commit is contained in:
parent
b20cc3eb21
commit
d62628d0d9
@ -27,7 +27,7 @@ final class UserController
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function redirectToPreviousPage(Array $A_postParams = null){
|
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"]);
|
header("Location: ".$A_postParams["return_uri"]);
|
||||||
} else {
|
} else {
|
||||||
header("Location: /");
|
header("Location: /");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user