diff options
Diffstat (limited to 'h-source/Library/Call.php')
-rwxr-xr-x | h-source/Library/Call.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/h-source/Library/Call.php b/h-source/Library/Call.php index a2c7e68..092e59b 100755 --- a/h-source/Library/Call.php +++ b/h-source/Library/Call.php @@ -71,7 +71,7 @@ function callHook() $url = (strcmp(getQueryString(),"") !== 0) ? getQueryString() : DEFAULT_CONTROLLER . '/' . DEFAULT_ACTION; } - //rewrite the URL +// rewrite the URL if (Route::$rewrite === 'yes') { $url = rewrite($url); @@ -217,6 +217,8 @@ function rewrite($url) { foreach (Route::$map as $key => $address) { + $key = str_replace('\/','/',$key); + $key = str_replace('/','\/',$key); if (preg_match('/^'.$key.'/',$url)) { return preg_replace('/^'.$key.'/',$address,$url); |