From 6fceaf205a341c2134457bf9f24a7a7f2fba63e0 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Mon, 31 Jan 2011 22:18:02 +0000 Subject: characters / [ and ] are now allowed for the model name --- h-source/Application/Include/myFunctions.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'h-source/Application/Include') 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); -- cgit v1.2.3