note 119363 added to function.file-put-contents
| From: | aabaevarrobagmailcomacom | Date: | Fri, 20 May 2016 23:02:30 +0000 |
| Subject: | note 119363 added to function.file-put-contents | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-205528@lists.php.net to get a copy of this message | ||
I suggest to expand file_force_contents() function of TrentTompkins at gmail dot com by adding
verification if patch is like: "../foo/bar/file"
if (strpos($dir, "../") === 0)
$dir = str_replace("..", substr(__DIR__, 0, strrpos(__DIR__, "/")), $dir);
----
Server IP: 72.52.91.14
Probable Submitter: 2.155.1.104
----
Manual Page -- http://php.net/manual/en/function.file-put-contents.php
Edit -- https://master.php.net/note/edit/119363
Del: integrated -- https://master.php.net/note/delete/119363/integrated
Del: useless -- https://master.php.net/note/delete/119363/useless
Del: bad code -- https://master.php.net/note/delete/119363/bad+code
Del: spam -- https://master.php.net/note/delete/119363/spam
Del: non-english -- https://master.php.net/note/delete/119363/non-english
Del: in docs -- https://master.php.net/note/delete/119363/in+docs
Del: other reasons-- https://master.php.net/note/delete/119363
Reject -- https://master.php.net/note/reject/119363
Search -- https://master.php.net/manage/user-notes.php