From 174502438c0adf5b4844ce021a1f16fa05ce28ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Wed, 5 Mar 2008 08:22:55 +0000 Subject: [PATCH] Fix bug with CIDR hinting git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@355 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Metadata/MetaDataStorageSource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SimpleSAML/Metadata/MetaDataStorageSource.php b/lib/SimpleSAML/Metadata/MetaDataStorageSource.php index 741b8ae2b..29268bcb7 100644 --- a/lib/SimpleSAML/Metadata/MetaDataStorageSource.php +++ b/lib/SimpleSAML/Metadata/MetaDataStorageSource.php @@ -113,7 +113,7 @@ abstract class SimpleSAML_Metadata_MetaDataStorageSource { if(!is_array($entry['hint.cidr'])) continue; foreach ($entry['hint.cidr'] AS $hint_entry) { - if (ipCIDRcheck($hint_entry, $ip)) + if (SimpleSAML_Utilities::ipCIDRcheck($hint_entry, $ip)) return $entityId; } -- GitLab