diff --git a/lib/SimpleSAML/AuthMemCookie.php b/lib/SimpleSAML/AuthMemCookie.php index e15e0b9b46488a684a1cb11f8acf76ba90921f0e..79824d1f3f7f1bb89bfcf4f093609a3cf741ccc7 100644 --- a/lib/SimpleSAML/AuthMemCookie.php +++ b/lib/SimpleSAML/AuthMemCookie.php @@ -114,7 +114,7 @@ class SimpleSAML_AuthMemCookie { $memcache = new Memcache; - foreach (split(",",$memcacheHost) as $memcacheHost) { + foreach (explode(',', $memcacheHost) as $memcacheHost) { $memcache->addServer($memcacheHost, $memcachePort); } diff --git a/lib/SimpleSAML/Utilities.php b/lib/SimpleSAML/Utilities.php index a38c1a289615e70f7b98be799729649d9f7afc70..781e26e2bd7df79fc5312a26e52770fab5d0313e 100644 --- a/lib/SimpleSAML/Utilities.php +++ b/lib/SimpleSAML/Utilities.php @@ -596,7 +596,7 @@ class SimpleSAML_Utilities { */ static function ipCIDRcheck($cidr, $ip = null) { if ($ip == null) $ip = $_SERVER['REMOTE_ADDR']; - list ($net, $mask) = split ("/", $cidr); + list ($net, $mask) = explode('/', $cidr); $ip_net = ip2long ($net); $ip_mask = ~((1 << (32 - $mask)) - 1); @@ -1309,8 +1309,8 @@ class SimpleSAML_Utilities { assert('is_string($query_string)'); $res = array(); - foreach(split('&', $query_string) as $param) { - $param = split('=', $param); + foreach(explode('&', $query_string) as $param) { + $param = explode('=', $param); $name = urldecode($param[0]); if(count($param) === 1) { $value = ''; diff --git a/modules/adfs/www/idp/prp.php b/modules/adfs/www/idp/prp.php index 9f0cbb101ed1c82439aadb3344c2a42d6647b01b..69d1489036baa773131c71506f33fc67940b6953 100644 --- a/modules/adfs/www/idp/prp.php +++ b/modules/adfs/www/idp/prp.php @@ -107,8 +107,8 @@ if (isset($_GET['wa'])) { try { // accomodate for disfunctional $_GET "windows" slash decoding in PHP $wctx = $_GET['wctx']; - foreach (split('&', $_SERVER['REQUEST_URI']) as $e) { - $a = split('=', $e); + foreach (explode('&', $_SERVER['REQUEST_URI']) as $e) { + $a = explode('=', $e); if ($a[0] == 'wctx') $wctx = urldecode($a[1]); } $requestid = $wctx; diff --git a/modules/statistics/lib/LogParser.php b/modules/statistics/lib/LogParser.php index 1094e7a9ded70f96fba77a13fa638453e1913405..5d1ff70df7397a6f7a4ad44a27b9d19a99c648f2 100644 --- a/modules/statistics/lib/LogParser.php +++ b/modules/statistics/lib/LogParser.php @@ -32,7 +32,7 @@ class sspmod_statistics_LogParser { public function parseContent($line) { $contentstr = substr($line, $this->offset); - $content = split(' ', $contentstr); + $content = explode(' ', $contentstr); return $content; }