Closed MasterEx closed 14 years ago
Fix Proposal : Add filtering after submiting the file to change ! , ( ) to underscores , with the current filename scheme it is not safe to keep this characters!
we could base64 these characters or something and decode them in [v]file.php when serving them, somehow
this could work , the filename will be very long though..!
yes and the files won't be searchable through firefox awesomebar :/ However I don't feel comfortable about changing the original file name :(
Will just apply the same filter on the uploaded filename and everything will be fine :)
It seems that the particular character that isn't parsed correctly is &
& in HTML is an escape character..! See http://www.ascii.cl/htmlcodes.htm
OK, the problem is caused because [v]file.php GETS the file name that contains the & character. So when the ServeFile($_GET['i']); is called everything after & (including &) is ignored.
I think I fixed it :)
looks nice :)
When filenames contain special characters such as (,),! e.t.c. the parsing fails. This leads to unreachable files and specifically returns a "Your link is invalid , or maybe the file expired.. " warning page.