1and1 hsoting uri string converting periods and spaces to underscrores |
[eluser]Ty Bex[/eluser]
Well like many bugs and problems with 1and1.com hosting. If I pass an file name in the uri sting Code: http://www.site.com/uploadImage/test.jpg On my home Linux server if I: Code: echo $this->uri->segment(3); Code: test.jpg On the 1and1 dedicated hosted site Result Code: test_jpg Anyone have any ideas on how to correct this problem It also converts spaces to underscrores in the uri.
[eluser]CroNiX[/eluser]
spaces and periods in the url are not valid and should be converted to uri appropriate characters. If you are going to display them in the url run them through urlencode first. Then $this->uri->segment(3) should return the proper name and your host won't hijack your url. http://www.w3schools.com/TAGS/ref_urlencode.asp
[eluser]Ty Bex[/eluser]
Thanks.. for the info.. and quick response. It was just odd that it was working fine on my dev server.. I managed to work around an pass the vars another way for now. But excellent lesson .. Thanks. 24 hours to implement !!
[eluser]InsiteFX[/eluser]
If your development server is running on Windows, it allows for . in directory/filenames InsiteFX
[eluser]Ty Bex[/eluser]
Actually all my VM http (LAMP) servers are Ubuntu. This is why it surprised me when I deployed to a linux box at 1and1.. Thanks for the info.. I would rather change my coding standards then hack it. |
Welcome Guest, Not a member yet? Register Sign In |