Is this code secure?

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

arborint wrote:feyd, it would be good to have a definitive solution to point to for this -- as this question comes up often. I searched and couldn't find yours. Is yours or jmut's a better implementation?
I believe Jenk was referring to the code I posted in response to ~scottayy's directory tree thread in Snippets/Critique.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

feyd's is here:

viewtopic.php?p=256500#256500


jmut's is here:

viewtopic.php?p=423242#423242


It looks like they use slightly different techniques.
(#10850)
Post Reply