Re: Question about Smarty [secure?]

From: Date: Fri, 22 Jun 2001 01:19:22 +0000
Subject: Re: Question about Smarty [secure?]
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-942@lists.php.net to get a copy of this message
Hey there... How would you handle dynamic URI's or dynamic strings? This is great stuff btw and I appreciate the feedback! Also, would calling a class seem to be the best method to handle this? Thanks, ~ryadex --- Gavin Cowie <squirtsomething@gavincowie.com> wrote: > > 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 > > > > --- > You are currently subscribed to smarty as: > ryadex@yahoo.com > To unsubscribe send a blank email to > $subst('Email.Unsub') > Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/ __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/

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