From 06ae66043b753ce41d24d2f9aeecdf2ba9b0f9e0 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Wed, 29 Jul 2015 10:34:19 +0800 Subject: [PATCH] MDL-49360 core_lib: remove get_referer() call form auth ldap --- auth/ldap/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/ldap/auth.php b/auth/ldap/auth.php index 7b39daf3628..96d9bbaf23d 100644 --- a/auth/ldap/auth.php +++ b/auth/ldap/auth.php @@ -1686,7 +1686,7 @@ class auth_plugin_ldap extends auth_plugin_base { // we don't want to use at all. As we can't get rid of it, just point // $SESSION->wantsurl to $CFG->wwwroot (after all, we came from there). if (empty($SESSION->wantsurl) - && (get_referer() == $CFG->httpswwwroot.'/auth/ldap/ntlmsso_finish.php')) { + && (get_local_referer() == $CFG->httpswwwroot.'/auth/ldap/ntlmsso_finish.php')) { $SESSION->wantsurl = $CFG->wwwroot; }