note 48827 deleted from function.realpath by aidan
| From: | aidan@php.net | Date: | Thu, 28 Apr 2005 10:22:31 +0000 |
| Subject: | note 48827 deleted from function.realpath by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-88681@lists.php.net to get a copy of this message | ||
Note Submitter: b5 dot spamhere at authinc dot com
----
Try this for canonical straightening of URLs
while($path != ($path = preg_replace("/[^\/:?]+\/\.\.\//", "", $path)))
;
B5