From 42a7c5ee155d2cbbf0e93d1d775bfe7843c0f77a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Sun, 30 Mar 2008 12:03:02 +0000 Subject: [PATCH] Removed the strict parameter from base64_decode, to be more compatible with pre-5.2 php. Thanks to Klaas Wierenga for reporting this issue. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@474 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Bindings/SAML20/HTTPRedirect.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/SimpleSAML/Bindings/SAML20/HTTPRedirect.php b/lib/SimpleSAML/Bindings/SAML20/HTTPRedirect.php index e2724046a..4fc3977a7 100644 --- a/lib/SimpleSAML/Bindings/SAML20/HTTPRedirect.php +++ b/lib/SimpleSAML/Bindings/SAML20/HTTPRedirect.php @@ -118,7 +118,7 @@ class SimpleSAML_Bindings_SAML20_HTTPRedirect { } // getting signature from get arguments - $signature = @base64_decode($_GET['Signature'], TRUE); + $signature = @base64_decode($_GET['Signature']); if (!$signature) { throw new Exception('Error base64 decoding signature parameter.'); } @@ -219,7 +219,7 @@ class SimpleSAML_Bindings_SAML20_HTTPRedirect { $relaystate = NULL; } - $decodedRequest = @base64_decode($rawRequest, TRUE); + $decodedRequest = @base64_decode($rawRequest); if (!$decodedRequest) { throw new Exception('Could not base64 decode SAMLRequest GET parameter'); } @@ -255,7 +255,7 @@ class SimpleSAML_Bindings_SAML20_HTTPRedirect { $relaystate = NULL; } - $decodedRequest = @base64_decode($rawRequest, TRUE); + $decodedRequest = @base64_decode($rawRequest); if (!$decodedRequest) { throw new Exception('Could not base64 decode SAMLRequest GET parameter'); } @@ -293,7 +293,7 @@ class SimpleSAML_Bindings_SAML20_HTTPRedirect { $relaystate = NULL; } - $decodedRequest = @base64_decode($rawRequest, TRUE); + $decodedRequest = @base64_decode($rawRequest); if (!$decodedRequest) { throw new Exception('Could not base64 decode SAMLRequest GET parameter'); } -- GitLab