Adam Conrad wrote:

Ross Bemrose said:


The real problem is that PHP is no longer removing windows style paths
before placing the file's name in $_FILES['file']['name']. Whether this
has anything to do with basename() or not, I don't know.



Ah-ha. You're seeing http://bugs.php.net/bug.php?id=31757, which upstream has so kindly labelled "bogus". Note that the helpful user who replied and said "use basename()" obviously doesn't know that basename() on UNIX build of PHP doesn't strip Windows paths, and never has.

So, the problem is that rfc1867 has stopped stripping paths altogether,
and some browsers (well, probably just IE) send one.

Feel free to open a new bug upstream telling them where to shove their
lack of backward compatibility.  I'm going to see what I can do as well,
but the more users the merrier when you're dealing with an upstream that
prefers not to admit to HAVING bugs in the first place.  :/

... Adam




Rather than filing a new bug, I filed a Feature/Change Request on it: http://bugs.php.net/bug.php?id=31891 Hopefully I explained the problem better there than I originally did to you.

--
Ross Bemrose
Webmaster, VGMusic.com


-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 2/7/2005





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to