URL/URI problem [Solved] |
[eluser]Queops[/eluser]
Hello everyone. I got a controller called main, that has a function: Code: function test($name) Now, I have my fancy URL's but if I go to example.com/main/test/FileName-_-Whatever_Strng-Here_0.0.1.zip, what shows up is: FileName-_-Whatever_Strng-Here_0_0_1_zip Which means it converts the dots to underscores.. but I have no clue why. My uri permitted chars are as default (which means .'s are allowed). EDIT: I also talked to people on IRC channel, some guy tried this out and told me works fine for him. So I suspect it's Apache or PHP related. So.. what could it be?
[eluser]Jan_1[/eluser]
(Trim filename while uploading or saving. Most systems don't like more than one point because they are usily seperator between file_name and format.) If it would show up the string with points it would mean subdomains. Just trim it while download(or alike). Is this a help?
[eluser]jmadsen[/eluser]
I'm not really clear what you are doing, but have a look here: http://www.php.net/manual/en/language.va...ternal.php
[eluser]Queops[/eluser]
@Jan: Yeh I guess I'll have to filter out filenames upon insertion. I'm gonna use id's and a database instead. Thanks @jmadsen: Hehe, the issue isn't solved in there, thanks for replying though. |
Welcome Guest, Not a member yet? Register Sign In |