Revision: 1896
Author: andreassolberg
Date: Fri Oct 23 12:12:57 2009
Log: Only list entities that are not expired...
http://code.google.com/p/simplesamlphp/source/detail?r=1896
Modified:
/trunk/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php
=======================================
--- /trunk/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php Tue Oct 6
02:53:20 2009
+++ /trunk/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php Fri Oct 23
12:12:57 2009
@@ -167,6 +167,16 @@
foreach($this->sources as $source) {
$srcList = $source->getMetadataSet($set);
+ foreach($srcList AS $key => $le) {
+ if (array_key_exists('expire', $le)) {
+ if ($le['expire'] < time()) {
+ unset($srcList[$key]);
+ }
+ }
+ }
+
+
+
/* $result is the last argument to array_merge because
we want the
content already
* in $result to have precedence.
*/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---