Revision: 1940
Author: olavmrk
Date: Wed Nov 4 05:51:03 2009
Log: SAMLParser: Cast "index" to integer
http://code.google.com/p/simplesamlphp/source/detail?r=1940
Modified:
/trunk/lib/SimpleSAML/Metadata/SAMLParser.php
=======================================
--- /trunk/lib/SimpleSAML/Metadata/SAMLParser.php Thu Oct 29 00:06:17 2009
+++ /trunk/lib/SimpleSAML/Metadata/SAMLParser.php Wed Nov 4 05:51:03 2009
@@ -1157,7 +1157,7 @@
if(!$element->hasAttribute('index')) {
throw new Exception($name . ' missing required
index attribute.');
}
- $ep['index'] = $element->getAttribute('index');
+ $ep['index'] = (int)$element->getAttribute('index');
if($element->hasAttribute('isDefault')) {
$t = $element->getAttribute('isDefault');
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---