Re: "Sanitize" paths

From: Date: Sun, 02 Oct 2005 18:02:24 +0000
Subject: Re: "Sanitize" paths
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-223530@lists.php.net to get a copy of this message
On Sun, 2005-10-02 at 11:26, Philip Hallstrom wrote: > >> 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. The following might help you write your own: http://www.interjinn.com/jinnDoc/interjinn.function.jinn____fullRelativePath.phtml Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#223530) next »