Revision: 1910 Author: olavmrk Date: Mon Oct 26 07:55:09 2009 Log: saml2debug: Don't treat '+' as urlencoded space.
A '+' in the SAMLRequest/Response is more likely to belong to the base64-encoding than to represent a space. Merged into 1.5 branch from r1901. http://code.google.com/p/simplesamlphp/source/detail?r=1910 Modified: /branches/simplesamlphp-1.5/modules/saml2debug/www/debug.php ======================================= --- /branches/simplesamlphp-1.5/modules/saml2debug/www/debug.php Tue Feb 17 07:32:36 2009 +++ /branches/simplesamlphp-1.5/modules/saml2debug/www/debug.php Mon Oct 26 07:55:09 2009 @@ -20,7 +20,7 @@ if (array_key_exists('LogoutRequest', $arr)) return $arr['LogoutRequest']; if (array_key_exists('LogoutResponse', $arr)) return $arr['LogoutResponse']; - return urldecode(stripslashes($val)); + return rawurldecode(stripslashes($val)); } function decode($raw) { @@ -41,7 +41,7 @@ if ($_REQUEST['binding'] === 'redirect') { return urlencode(base64_encode(gzdeflate(stripslashes($message)))); } else { - return urlencode(base64_encode(stripslashes($message))); + return base64_encode(stripslashes($message)); } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "simpleSAMLphp commits" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/simplesamlphp-commits?hl=en -~----------~----~----~----~------~----~------~--~---
