diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-05-08 15:26:22 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-05-08 15:26:22 +0000 |
commit | afc02bc1c3db9ffe8c9bf660c8aa08666752edfb (patch) | |
tree | 9a02b06b390dd0c1e796474b888e92c245473424 /h-source/Library/Call.php | |
parent | 7fdac301801bc44f6fdb343187413bdfd2d5366c (diff) |
h-source:added new EasyGiant SVN version
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); |