CodeIgniter Forums
[Solved] URI display differs from URL text - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: [Solved] URI display differs from URL text (/thread-29629.html)



[Solved] URI display differs from URL text - El Forum - 04-15-2010

[eluser]fserrano[/eluser]
The text in the address bar differs from the text displayed by uri->segment(). For instance, this is what appears in the address bar of my browser:

Quote:http://www.thesite.com/user/forgot_password/ENTTKsQ0sEiob~GBDbRGn1hRMB2QZOeXXKVcTXVeJdd~x.T91v37DFUBSvEiXkaAuaiBUUaRKh7GF5YZDOAx5ElEX.37nIiw

But if I retrieve the third segment with $this->uri->segment(3) it displays:

Quote:ENTTKsQ0sEiob~GBDbRGn1hRMB2QZOeXXKVcTXVeJdd~x_T91v37DFUBSvEiXkaAuaiBUUaRKh7GF5YZDOAx5ElEX_37nIiw

Notice the periods changed to underscores. How can I prevent this?


[Solved] URI display differs from URL text - El Forum - 04-15-2010

[eluser]Twisted1919[/eluser]
I am not sure , but for my info , what's encrypted in there ?
Are you aware that even that info is encrypted , it can be readed ?


[Solved] URI display differs from URL text - El Forum - 04-16-2010

[eluser]mddd[/eluser]
Check out this forum thread : http://ellislab.com/forums/viewthread/114218/
The answer is in reply #10.
It seems that on some PHP configurations, the server will convert incoming uri information into something that can be used as a variable name (?!)
That will screw things up. So the uri is really changed even before CodeIgniter gets to it.
The solution is to change your path info settings. See the link above.


[Solved] URI display differs from URL text - El Forum - 04-16-2010

[eluser]fserrano[/eluser]
Good to know! Thanks for letting me know. Also, if somebody else has this issue, I encoded to base64 before passing values to the URL and it also worked. I think base64 does not use periods. More info on that here: http://ellislab.com/forums/viewthread/109429/