diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-01-31 22:18:02 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-01-31 22:18:02 +0000 |
commit | 6fceaf205a341c2134457bf9f24a7a7f2fba63e0 (patch) | |
tree | 0ec7e265c878693b654b70b4d71641c2fa7f8726 /h-source/Application/Include | |
parent | 3b289dfbfd66fe63b1b596d9c451c848d1302840 (diff) |
characters / [ and ] are now allowed for the model name
Diffstat (limited to 'h-source/Application/Include')
-rw-r--r-- | h-source/Application/Include/myFunctions.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php index 55fbd9b..a7ccf58 100644 --- a/h-source/Application/Include/myFunctions.php +++ b/h-source/Application/Include/myFunctions.php @@ -23,10 +23,11 @@ if (!defined('EG')) die('Direct access not allowed!'); function encodeUrl($url) { $url = str_replace(' ','-',$url); - $url = str_replace('[',null,$url); - $url = str_replace(']',null,$url); - $url = str_replace('(',null,$url); - $url = str_replace(')',null,$url); + $url = str_replace('[','-',$url); + $url = str_replace(']','-',$url); + $url = str_replace('(','-',$url); + $url = str_replace(')','-',$url); + $url = str_replace('/','-',$url); $url = str_replace('@','-at-',$url); $url = urlencode($url); // $url = html_entity_decode($url, ENT_QUOTES); |