you can either write your own escaping function who takes care of those 
characters, or better, use base64encode to pass those special character 
strings via $_GET
but there you also need to tweak it a little bit,
see the CakeDC search plugin for details where I fixed the method to safely 
encode the / and = chars:
https://github.com/CakeDC/search/blob/master/Controller/Component/PrgComponent.php#L198

you will then need to decode it again in the view:
https://github.com/CakeDC/search/blob/master/Controller/Component/PrgComponent.php#L144


Am Dienstag, 23. Oktober 2012 09:48:30 UTC+2 schrieb Lightee:
>
> Dear cakephp experts,
>
> While passing parameters through URL, there are cases when the parameters 
> contain funny characters like %$#. This problem is solved when I encode the 
> URL. However, for some reason, characters such as backslash / and 
> forward-slash \ simply do not work on cakephp. All other characters work 
> after encoding the URL.
>
> I have already spent significant amount of time on this problem. Can 
> someone advise?
>
> Thank you very much.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to