Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So in browser i request a file that i know it exists

3a1c2aa4d488ae4d?s=40?f=78

but it gives me a 404 error and in log says that it couldn't find file named 3a1c2aa4d488ae4d. For some reason it cuts the part of the filename after ? and tries to open that file instead.

I would understand the problem in windows but this is Centos.

Any ideas how to fix it?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

The ? will be considered as parameters, as the request will be considered as HTML query string. You need to encode the special symbols so that they are treated as characters and not command parts.

Better yet, use sensible file names.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.