Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Allow name="0" in Content-Disposition header.

Interchange was checking the Content-Disposition name for perly truth
rather than definedness, which caused it to incorrectly disallow the valid
name of "0". I ran into one particular program in the wild that happens
to generate requests with just such headers:
  • Loading branch information...
commit b29f34f55dec6211403fbbb421e775e1b029de48 1 parent 393f8c7
@danielbr danielbr authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Vend/
2  lib/Vend/
@@ -472,7 +472,7 @@ sub parse_multipart {
# Bug: Netscape doesn't escape quotation marks in file names!!!
my($filename) = $header{'Content-Disposition'}=~/ filename="?([^\";]*)"?/;
#::logDebug("param='$param' filename='$filename'" );
- if(! $param) {
+ if(not defined $param) {
::logGlobal({ level => 'debug' }, "unsupported multipart header: \n%s\n", $header);

0 comments on commit b29f34f

Please sign in to comment.
Something went wrong with that request. Please try again.