diff options
author | Jaime Pérez Crespo <jaime.perez@uninett.no> | 2014-01-17 15:40:02 +0000 |
---|---|---|
committer | Jaime Pérez Crespo <jaime.perez@uninett.no> | 2014-01-17 15:40:02 +0000 |
commit | 015ab4a0386cafc3539c772c164d9b9dfa8a694e (patch) | |
tree | da3f939a538b99d0356ee867357d7a23118ae8e1 /modules/exampleauth/lib/Auth | |
parent | 2e4dc23710b81b25323acbf8d976a3c3dbe429bf (diff) | |
download | simplesamlphp-015ab4a0386cafc3539c772c164d9b9dfa8a694e.zip simplesamlphp-015ab4a0386cafc3539c772c164d9b9dfa8a694e.tar.gz simplesamlphp-015ab4a0386cafc3539c772c164d9b9dfa8a694e.tar.bz2 |
Start using the redirectTrustedURL() and redirectUntrustedURL() wrappers.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3326 44740490-163a-0410-bde0-09ae8108e29a
Diffstat (limited to 'modules/exampleauth/lib/Auth')
-rw-r--r-- | modules/exampleauth/lib/Auth/Process/RedirectTest.php | 2 | ||||
-rw-r--r-- | modules/exampleauth/lib/Auth/Source/External.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/exampleauth/lib/Auth/Process/RedirectTest.php b/modules/exampleauth/lib/Auth/Process/RedirectTest.php index 02a4220..1ed8103 100644 --- a/modules/exampleauth/lib/Auth/Process/RedirectTest.php +++ b/modules/exampleauth/lib/Auth/Process/RedirectTest.php @@ -22,7 +22,7 @@ class sspmod_exampleauth_Auth_Process_RedirectTest extends SimpleSAML_Auth_Proce /* Save state and redirect. */ $id = SimpleSAML_Auth_State::saveState($state, 'exampleauth:redirectfilter-test'); $url = SimpleSAML_Module::getModuleURL('exampleauth/redirecttest.php'); - SimpleSAML_Utilities::redirect($url, array('StateId' => $id)); + SimpleSAML_Utilities::redirectTrustedURL($url, array('StateId' => $id)); } } diff --git a/modules/exampleauth/lib/Auth/Source/External.php b/modules/exampleauth/lib/Auth/Source/External.php index fee9489..d3b16f0 100644 --- a/modules/exampleauth/lib/Auth/Source/External.php +++ b/modules/exampleauth/lib/Auth/Source/External.php @@ -156,7 +156,7 @@ class sspmod_exampleauth_Auth_Source_External extends SimpleSAML_Auth_Source { * Note the 'ReturnTo' parameter. This must most likely be replaced with * the real name of the parameter for the login page. */ - SimpleSAML_Utilities::redirect($authPage, array( + SimpleSAML_Utilities::redirectTrustedURL($authPage, array( 'ReturnTo' => $returnTo, )); |