Welcome Guest, Not a member yet? Register   Sign In
Problem using slash in Arguments of URL
#1

I use this syntax: http://example.com/controller/method/arg1/arg2/...

Therefore my AJAX request inside the page simply concatenates the arguments using '/'. Unfortunately the arguments are not under my control, so there may contain "illegal chars', such as the forward slash. This will mess up the controller.

Using CIs encryptlib is not a way for me, because i do not have it inside my Javascript routines, which composes the URL. For some reasons i not really know, using URLencoding of JS produce valid URLs ('/' is translated to %2F) but it does not seem to work. I think some "magic" inside CI decode them bevor handling it as arguments... (please clearify if you can)


What options do i have?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB