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




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

Reply via email to