summaryrefslogtreecommitdiffstats
path: root/system/libraries/Trackback.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2009-03-11 18:01:14 +0100
committerDerek Jones <derek.jones@ellislab.com>2009-03-11 18:01:14 +0100
commit1322ec54289f09f7e176924902d5642f269aec48 (patch)
tree96df3c6bc3d27d3a494b67f9f855850d600e4323 /system/libraries/Trackback.php
parent28e5c8fc0ed79017a67b896613698e98fa7da8b3 (diff)
ereg eradication
Diffstat (limited to 'system/libraries/Trackback.php')
-rw-r--r--system/libraries/Trackback.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/system/libraries/Trackback.php b/system/libraries/Trackback.php
index 844e50364..d53f17fef 100644
--- a/system/libraries/Trackback.php
+++ b/system/libraries/Trackback.php
@@ -267,7 +267,7 @@ class CI_Trackback {
}
@fclose($fp);
- if ( ! eregi("<error>0</error>", $this->response))
+ if (stristr($this->response, '<error>0</error>') === FALSE)
{
$message = 'An unknown error was encountered';
@@ -370,10 +370,7 @@ class CI_Trackback {
}
else
{
- if (ereg("/$", $url))
- {
- $url = substr($url, 0, -1);
- }
+ $url = rtrim($url, '/');
$tb_array = explode('/', $url);
$tb_id = $tb_array[count($tb_array)-1];