Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55645 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64334 invoked from network); 28 Sep 2011 08:17:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Sep 2011 08:17:34 -0000 Authentication-Results: pb1.pair.com header.from=h.reindl@thelounge.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=h.reindl@thelounge.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain thelounge.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: h.reindl@thelounge.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Windows 98 (1) Received: from [91.118.73.15] ([91.118.73.15:56383] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/20-62163-B18D28E4 for ; Wed, 28 Sep 2011 04:17:32 -0400 Received: from rh.thelounge.net (rh.thelounge.net [10.0.0.99]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.thelounge.net (Postfix) with ESMTPSA id 3B4FD9A for ; Wed, 28 Sep 2011 10:17:29 +0200 (CEST) Message-ID: <4E82D818.9070506@thelounge.net> Date: Wed, 28 Sep 2011 10:17:28 +0200 Organization: the lounge interactive design User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: internals@lists.php.net References: <4E81902E.1020304@thelounge.net> <4E824B36.4040209@gmail.com> <4E824BF7.9070405@thelounge.net> <4E824F69.1010703@gmail.com> <4E825084.4040703@thelounge.net> <4E82B825.5060003@daylessday.org> <4E82C679.9030800@thelounge.net> In-Reply-To: X-Enigmail-Version: 1.3.2 OpenPGP: id=7F780279; url=http://arrakis.thelounge.net/gpg/h.reindl_thelounge.net.pub.txt Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigACB71EDE965118714B7CB8AD" Subject: Re: [PHP-DEV] open_basedir bypass -> errata tempnam() From: h.reindl@thelounge.net (Reindl Harald) --------------enigACB71EDE965118714B7CB8AD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 28.09.2011 09:28, schrieb Pierre Joye: > On Wed, Sep 28, 2011 at 9:02 AM, Reindl Harald = wrote: >=20 >> $tmp_name =3D str_replace("\\", '/', tempnam($temp_folder, 'rhcsv'));= >=20 > 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 --------------enigACB71EDE965118714B7CB8AD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6C2BkACgkQhmBjz394AnkQwgCggP6wDO9MXnuoyC/AAjook3XV zhkAn2iusN4G75aYuN1AYwscah2wSU0k =xr6w -----END PGP SIGNATURE----- --------------enigACB71EDE965118714B7CB8AD--