|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-06-27 13:38 UTC] sniper@php.net
[2001-06-28 11:27 UTC] paul dot busse at ubizen dot com
[2001-06-28 11:50 UTC] paul dot busse at ubizen dot com
[2001-06-29 21:21 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
When uploading a file using post, data after a closing boundary (see rfcs 1876 and 1521). This is a boundary with two dashes added to it. If this is the case the remainder of the content can be ignored. If there are more then two bytes after the last boundary in the file PHP will issue a(n unappropriate) warning saying that its MIME headers are garbled. I modified "./main/rfc1876.c" as follows: (diff -p output) *** rfc1867.c.good Wed Jun 27 15:50:32 2001 --- rfc1867.c Wed Jun 27 15:50:12 2001 *************** static void php_mime_split(char *buf, in *** 142,147 **** --- 142,152 ---- eolsize = 1; } + if(*(loc+len)=='-' && *(loc+len+1)=='-' ) { + Done=1; + break; + } + rem -= (loc - ptr) + len + eolsize; ptr = loc + len + eolsize; } else { Good luck to you Paul