summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2009-08-25 15:25:27 +0200
committerDerek Allard <derek.allard@ellislab.com>2009-08-25 15:25:27 +0200
commit5f58ecb632447a6b82697074d41bd0804399a952 (patch)
tree5d8e383f9aa7c3df1cd4483a913fa42321890537 /system/libraries
parent69b1fcc0b26c181b24aed8c347db94563328a83e (diff)
removed an unneeded regex
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Config.php b/system/libraries/Config.php
index ed1541b20..0cafde71a 100644
--- a/system/libraries/Config.php
+++ b/system/libraries/Config.php
@@ -203,7 +203,7 @@ class CI_Config {
else
{
$suffix = ($this->item('url_suffix') == FALSE) ? '' : $this->item('url_suffix');
- return $this->slash_item('base_url').$this->slash_item('index_page').preg_replace("|^/*(.+?)/*$|", "\\1", $uri).$suffix;
+ return $this->slash_item('‘base_url').$this->slash_item('index_page').trim($uri, '/').$suffix;
}
}