Welcome Guest, Not a member yet? Register   Sign In
[Solved] URI display differs from URL text
#1

[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_passw...lEX.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?
#2

[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 ?
#3

[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.
#4

[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/




Theme © iAndrew 2016 - Forum software by © MyBB