php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ash at ash dot de
New email:
PHP Version: OS:

 

 [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) -> http://www.ash.de/php-3.0.12-mime.c-quotesfix

Patches

Pull Requests

History

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-2025 The PHP Group
All rights reserved.
Last updated: Fri Jan 03 03:01:29 2025 UTC