Welcome Guest, Not a member yet? Register   Sign In
mixed URL's
#11

[eluser]Bramme[/eluser]
I guess I could store them in a database and use the id in a variable and then just redirect to the file... Why shouldn't you pass a file path directly in the url? If you properly verify the requested path (so they're not allowed to download core files for example) I don't see any safety issues.
#12

[eluser]xwero[/eluser]
If you start limiting the download rights to some files people could use the file path to try to get to the file. The file path is a honey pot and you should avoid it unless it's the purpose to catch hackers, spammers and other creeps. It creates traffic you don't want.
#13

[eluser]Bramme[/eluser]
Ah, good to know! Thanks for the information!
#14

[eluser]Crafter[/eluser]
xwero

Quote:Crafter why are mixed urls incorrect? google uses http://www.google.be/search?q=… . If you translate that to CI search is the controller and the method is index. The query string are the parameters. You don’t even have to add a custom route to make this work.

I was commenting on the posters use of the URL that was posted, which implied that in that usage, "method" was the controlling script, rather than the CI index.php.
#15

[eluser]Iverson[/eluser]
Nobody has mentioned the case of a parameter being a URL. In the case of simply using segments, adding an additional url as does Digg.com, you will get an error. In that case, you are forced to use query strings. I have not figured out how to properly do this yet though, so please feel free to post any help to my forum:

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




Theme © iAndrew 2016 - Forum software by © MyBB