note 105581 added to function.realpath

From: Date: Tue, 30 Aug 2011 07:26:44 +0000
Subject: note 105581 added to function.realpath
Groups: php.notes 
Request: Send a blank email to php-notes+get-182819@lists.php.net to get a copy of this message
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 ../ ---- Server IP: 69.147.83.197 Probable Submitter: 193.84.207.159 ---- Manual Page -- http://www.php.net/manual/en/function.realpath.php Edit -- https://master.php.net/note/edit/105581 Del: integrated -- https://master.php.net/note/delete/105581/integrated Del: useless -- https://master.php.net/note/delete/105581/useless Del: bad code -- https://master.php.net/note/delete/105581/bad+code Del: spam -- https://master.php.net/note/delete/105581/spam Del: non-english -- https://master.php.net/note/delete/105581/non-english Del: in docs -- https://master.php.net/note/delete/105581/in+docs Del: other reasons-- https://master.php.net/note/delete/105581 Reject -- https://master.php.net/note/reject/105581 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#182819) next »