the problem is I don't have access to the web server logs or configuration
so it seems that your "evil user" has more access than you do. You are only escaping .. s/\.\./\\\.\\\./g; so if I supply /etc/passwd as my input, how does your script handle it?
You probably should split the path into its components, and then decide from there what the file is.
In reply to Re: Re: Re: escaping filenames taken in via user input
by Chady
in thread escaping filenames taken in via user input
by revdiablo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |