summaryrefslogtreecommitdiffstats
path: root/system/libraries/Router.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-15 22:29:25 +0200
committeradmin <devnull@localhost>2006-09-15 22:29:25 +0200
commit71430b4c30f01c861abe379becc670748e3b4a19 (patch)
treeaf4dddfde46d8a6fb5e10627fe202ebbb58e788f /system/libraries/Router.php
parent349b09c2af14c79c332a6b7d5e3b653a8ad527b7 (diff)
Diffstat (limited to 'system/libraries/Router.php')
-rw-r--r--system/libraries/Router.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Router.php b/system/libraries/Router.php
index de1a6e9a8..1dd1e5426 100644
--- a/system/libraries/Router.php
+++ b/system/libraries/Router.php
@@ -318,12 +318,12 @@ class CI_Router {
$key = str_replace(':any', '.+', str_replace(':num', '[0-9]+', $key));
// Does the RegEx match?
- if (preg_match('#^'.preg_quote($key).'$#', $uri))
+ if (preg_match('#^'.$key.'$#', $uri))
{
// Do we have a back-reference?
if (strpos($val, '$') !== FALSE AND strpos($key, '(') !== FALSE)
{
- $val = preg_replace('#^'.preg_quote($key).'$#', $val, $uri);
+ $val = preg_replace('#^'.$key.'$#', $val, $uri);
}
$this->_compile_segments(explode('/', $val));