how to fix url's generated by cmsimple?

General questions about CMSimple
Post Reply
v11
Posts: 2
Joined: Mon May 04, 2009 1:56 pm

how to fix url's generated by cmsimple?

Post by v11 » Mon May 04, 2009 2:01 pm

im using cmsimple for a while, it works great when using english.
but when i put in a new page in Hebrew the url comes out in the wrong format (e.g. site.com/?%EB%EC%E1%E9%ED)
i've used a str_replace on the a() function , at the cms.php file, so now the url is being genreated okm, but i get page not found... :(
i think im half way there, can someone assist?

thanks !

v11
Posts: 2
Joined: Mon May 04, 2009 1:56 pm

Re: how to fix url's generated by cmsimple?

Post by v11 » Mon May 04, 2009 2:15 pm

ok, partly solved!
just had to edit the function uenc($s) to stop doing urlencode().
but for some reason..it works only on ie, not on firefox..

EDIT:
now it works in firefox too! seems like firefox encode urls while sending data, so i have to repalce
$su = $rq[0] with $su = urldecode($rq[0])
im the cms.php

thanks anyways!

Post Reply