Welcome Guest, Not a member yet? Register   Sign In
Problems with a point in the uri
#1

[eluser]Unknown[/eluser]
Hi @ all

I have a (beginner)problem with a point in the uri:

my uri:
Code:
http://www.mydomain.ch/ort/st.gallen

when I get the uri with the following code, the result is not that one that I need. The point was replaced by an underscore??

Code:
print $this->uri->segment(2);
// the output: st_gallen

what I have to do?

Regards Siii
#2

[eluser]Dam1an[/eluser]
This sort of thing comes up about once a week, I can't remember the exact thread, but if I remember correctly, its something to do with ancient PHP4 which convert non alphanumeric characters to underscores
#3

[eluser]SpooF[/eluser]
Easiest way to fix this would to do a string replace. Only problem with doing that is if you have intentional underscores in your url.
#4

[eluser]Unknown[/eluser]
Thank you Dam1an!

Now I found the thread.

http://ellislab.com/forums/viewthread/114218/

I solve this problem with the configuration
Code:
$config['uri_protocol']    = "REQUEST_URI";




Theme © iAndrew 2016 - Forum software by © MyBB