Re: "Sanitize" paths

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Then realpath() your doc root as well and then you'll be comparing apples to apples...

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux