From afc02bc1c3db9ffe8c9bf660c8aa08666752edfb Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 8 May 2011 15:26:22 +0000 Subject: h-source:added new EasyGiant SVN version --- h-source/Library/Call.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'h-source/Library/Call.php') 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); -- cgit v1.2.3