Merge pull request #129 from ThomasRubini/return_uri_empty
This commit is contained in:
commit
142f431191
@ -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: /");
|
||||
|
Loading…
Reference in New Issue
Block a user