summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
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;
}
}