Re: open_basedir bypass -> errata tempnam()
| From: | Reindl Harald | Date: | Wed, 28 Sep 2011 08:17:28 +0000 |
| Subject: | Re: open_basedir bypass -> errata tempnam() | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55645@lists.php.net to get a copy of this message | ||
Am 28.09.2011 09:28, schrieb Pierre Joye:
> On Wed, Sep 28, 2011 at 9:02 AM, Reindl Harald <h.reindl@thelounge.net> wrote:
>
>> $tmp_name = str_replace("\\", '/', tempnam($temp_folder,
>> 'rhcsv'));
>
> Side note: this is never necessary, php does it for you. Unless you
> store paths yourself before calling a php file function
i know
this is my way to make sure that even on windows there are never
backslashes used and probably translations from realpaths to
urls are failing because of that
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc