Bug #2362: mime-Parser Broken

From: Date: Thu, 23 Sep 1999 10:15:24 +0000
Subject: Bug #2362: mime-Parser Broken
Groups: php.dev 
Request: Send a blank email to php-dev+get-11224@lists.php.net to get a copy of this message
From: ash@ash.de Operating system: Linux PHP version: 3.0.12 PHP Bug Type: Parser error Bug description: mime-Parser Broken #include "std_your_project_is_great.h" ;) mime.c from 3.0.12 line 92/278 ---------------------------------------- loc = memchr(ptr, '\n', rem); name = strstr(ptr, " name=\""); if (name && name < loc) { ---------------------------------------- this depends on " around the name-parameter. netscape (works): Content-Disposition: form-data; name="_field_3" lynx (fails): Content-Disposition: form-data; name=_field_3 so PHP barfs the following while using lynx: ------------------------------------------- Warning: File upload error - no name component in content disposition in /var/www/htdocs/mot-2.0/db_modify_done.php3 on line 47 ------------------------------------------- i have created some patch wich seems to fix ther quotes-problem. (by making them optional like they should be) -> http://www.ash.de/php-3.0.12-mime.c-quotesfix

« previous php.dev (#11224) next »