Re: "Sanitize" paths
| From: | Niels Ganser | Date: | Sun, 02 Oct 2005 01:01:05 +0000 |
| Subject: | Re: "Sanitize" paths | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223504@lists.php.net to get a copy of this message | ||
Thanks for your reply, Philip.
> realpath() is your friend...
That has been my first impression too, but...
> realpath() expands all symbolic links
I am actually using symlinks :)
I trust the files on my server so "local redirects" via symlinks are no
problem, the user submitted data is.
Regards,
Niels.