diff --git a/system/libraries/Router.php b/system/libraries/Router.php
index de1a6e9..1dd1e54 100644
--- a/system/libraries/Router.php
+++ b/system/libraries/Router.php
@@ -318,12 +318,12 @@
$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));