Revision: 1905 Author: olavmrk Date: Mon Oct 26 07:54:17 2009 Log: Only list entities that are not expired...
Merged into 1.5 branch from r1896. http://code.google.com/p/simplesamlphp/source/detail?r=1905 Modified: /branches/simplesamlphp-1.5/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php ======================================= --- /branches/simplesamlphp-1.5/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php Tue Oct 6 02:53:20 2009 +++ /branches/simplesamlphp-1.5/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php Mon Oct 26 07:54:17 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 -~----------~----~----~----~------~----~------~--~---
