[ROSLOGIN] Check for empty redirect field in login POST query

ONLINE-793
This commit is contained in:
Stanislav Motylkov 2018-07-09 18:23:35 +03:00 committed by Stas'M
parent cf317fbd7d
commit 8e78ce4ba9
No known key found for this signature in database
GPG Key ID: AFE513258CBA9E92

View File

@ -25,7 +25,7 @@
}
// Redirect to the given URL or to the Self-Service if there is none.
if (array_key_exists("redirect", $_POST))
if (array_key_exists("redirect", $_POST) && !empty($_POST["redirect"]))
redirect_to($_POST["redirect"]);
else
redirect_to("?p=selfservice");