Skip to content
Snippets Groups Projects
Commit 2617801f authored by Jon Dufresne's avatar Jon Dufresne Committed by Thijs Kinkhorst
Browse files

Fix PHP notices "Undefined index" in as_login.php. (#392)

Sometimes appear in error logs as:

PHP Notice:  Undefined index: ReturnTo in .../modules/core/www/as_login.php on line 9
PHP Notice:  Undefined index: AuthId in .../modules/core/www/as_login.php on line 13
parent c36efa96
No related branches found
No related tags found
No related merge requests found
......@@ -6,11 +6,11 @@
* @package SimpleSAMLphp
*/
if (!is_string($_REQUEST['ReturnTo'])) {
if (!isset($_REQUEST['ReturnTo'])) {
throw new SimpleSAML_Error_BadRequest('Missing ReturnTo parameter.');
}
if (!is_string($_REQUEST['AuthId'])) {
if (!isset($_REQUEST['AuthId'])) {
throw new SimpleSAML_Error_BadRequest('Missing AuthId parameter.');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment