Re: Question about Smarty [secure?]

From: Date: Mon, 18 Jun 2001 19:43:38 +0000
Subject: Re: Question about Smarty [secure?]
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-895@lists.php.net to get a copy of this message
> index.php > ---------- > [...] > /* Setup, get the page variable and do anything you need to it. I > normalise it to make it as short as possible, since the value of the > page variable is actually a path to a file. I also have a default set > if page isn't. */ is that secure enough for you? passing the filename as a var via the query string I mean. Could I do something unpleasant like : index.php?page=../../pics_of_siteop_nekkid/index.html or less amusingly index.php?page=/etc/passwd ? > > if ($page) { > // normalise > } else { > $page=default.html

« previous php.smarty.general (#895) next »