Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14346

Problem using slash in Arguments of URL

$
0
0
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?

Viewing all articles
Browse latest Browse all 14346

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>