You are here: Re: [PHP] "Sanitize" paths « PHP « IT news, forums, messages
Re: [PHP] "Sanitize" paths

Posted by Robert Cummings on 10/02/05 21:02

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. |
`------------------------------------------------------------'

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация