diff options
author | Vivek Dinesh <vivekdinesh5@gmail.com> | 2016-08-10 14:06:49 +0200 |
---|---|---|
committer | Vivek Dinesh <vivekdinesh5@gmail.com> | 2016-08-10 14:06:49 +0200 |
commit | 656fd7eef9624c3c07918b2d573d9ccb6f971c57 (patch) | |
tree | ef691cace0cb3c70bd1060c1cf0ea5b9e737d6cc /system/libraries | |
parent | fba242cf6bc99833c21fc3600fdff2691244e243 (diff) |
Better usage
Based on GitHub discussion.
Signed-off-by: Vivek Dinesh <vivekdinesh5@gmail.com>
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Trackback.php | 2 | ||||
-rw-r--r-- | system/libraries/Xmlrpc.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Trackback.php b/system/libraries/Trackback.php index 848f5b3c9..7222c00c2 100644 --- a/system/libraries/Trackback.php +++ b/system/libraries/Trackback.php @@ -370,7 +370,7 @@ class CI_Trackback { { $url = trim($url); - if (strpos(strtolower($url), 'http') !== 0) + if (stripos($url, 'http') !== 0) { $url = 'http://'.$url; } diff --git a/system/libraries/Xmlrpc.php b/system/libraries/Xmlrpc.php index b01691ac2..181a104d0 100644 --- a/system/libraries/Xmlrpc.php +++ b/system/libraries/Xmlrpc.php @@ -352,7 +352,7 @@ class CI_Xmlrpc { */ public function server($url, $port = 80, $proxy = FALSE, $proxy_port = 8080) { - if (strpos(strtolower($url), 'http') !== 0) + if (stripos($url, 'http') !== 0) { $url = 'http://'.$url; } |