note 105581 deleted from function.realpath by danbrown

From: Date: Tue, 30 Aug 2011 17:17:47 +0000
Subject: note 105581 deleted from function.realpath by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-182834@lists.php.net to get a copy of this message
Note Submitter: peter dot mlich at volny dot cz ---- Bug. Sven Arduwie 23-Jun-2008 10:43 Code: if ('..' == $part) { array_pop($absolutes); //!bad ... var_dump(get_absolute_path('this/is/../a/./test/.///is')); Try this: var_dump(get_absolute_path('this/is/../a/./../test/.///is')); Bad: removed ./ and ../ Good: removed a/ and ../

« previous php.notes (#182834) next »