Welcome Guest, Not a member yet? Register   Sign In
CIiBug? Url Encode /Url Decode problem in url Query Strings
#11

[eluser]moopa[/eluser]
I am new to CI so this may not be relevant, but in the application/config/config.php there is this line:-

Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

I do not see + in this setting. Maybe your problem?
#12

[eluser]mindprojects[/eluser]
Thanks but it's not the problem,otherwise it will cause "Disallowed Key characters".

For sophistry:
You were right!Testing the all stuff in IE,i can se %_20.It was because of firefox!

So,going back at the beginning, the problem actually was that using urldecode ,it doesn't make difference between + and %_2B right?
#13

[eluser]sophistry[/eluser]
yay, my three favorite words!

yes, you need rawurldecode() and rawurlencode() to get the spaces to convert from/to hex codes.

urlencode() and urldecode() will handle the plus sign as if it is indicating a space character.

check the PHP manual for details.
#14

[eluser]mindprojects[/eluser]
Many Thanks Soph!
#15

[eluser]Unknown[/eluser]
Hi,
Make sure you are decoding the right way, check this url decoding tool
David
#16

[eluser]prabeen.giri[/eluser]
'a-z 0-9~%.:_=+\- ' on cofig file can help allow other characters on the url which may require.
Thanks this may help
#17

[eluser]heenji[/eluser]
if you want to encode url and make it more secure,you could check the functions of this:

http://www.justskins.com/forums/encoding...75381.html




Theme © iAndrew 2016 - Forum software by © MyBB