|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2362 mime-Parser Broken
Submitted: 1999-09-23 06:15 UTC Modified: 1999-11-26 17:02 UTC
From: ash at ash dot de Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0.12 OS: Linux
Private report: No CVE-ID: None
 [1999-09-23 06:15 UTC] ash at ash dot de
#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) ->


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-26 17:02 UTC] rasmus at cvs dot php dot net
Applied by kk and then fixed by sas since the user-supplied patch was slightly broken.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 17:01:27 2024 UTC