Re: [PHP-DEV] Re: PHP 4.0 Bug #4439 Updated: PHP doesn't handle content-transfer-encoding header on form-based file upload From: Rasmus Lerdorf (rasmus <email protected>)
Date: 07/31/00

> > Well, both Netscape and IE went by RFC 1867 when they wrote their file
> > upload support and RFC-1867 explicitly shows the name (not
> > filename) argument as being a quoted string.
> >
> > -Rasmus
> >
>
> That does not mean that it is wise to ignore existing
> standards. At some point in time, the implementations will
> follow the standard, so PHP should at least be able to
> understand it.

That is obvious, but I still think lynx should be fixed to look like other
browsers here. If PHP blindly followed RFC-1867, other stuff would have
as well.

There is a reason the file upload code is in a file called rfc1867.c. I
wrote it to blindly follow that RFC and anything that deviates from the
RFC is likely to break it. It isn't the most solid piece of code around
and could definitely use a rewrite.

Ragnar, have a look at php4/main/rfc1867.c and see if you can spot the
trouble there.

-Rasmus

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>