diff options
Diffstat (limited to 'system/libraries/Config.php')
-rw-r--r-- | system/libraries/Config.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Config.php b/system/libraries/Config.php index 0cafde71a..9bf3d5026 100644 --- a/system/libraries/Config.php +++ b/system/libraries/Config.php @@ -203,7 +203,8 @@ 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').trim($uri, '/').$suffix; +// return $this->slash_item('‘base_url').$this->slash_item('index_page').trim($uri, '/').$suffix; + return $this->slash_item('base_url').$this->slash_item('index_page').preg_replace("|^/*(.+?)/*$|", "\\1", $uri).$suffix; } } |