curl-library
Parsing of Content-Disposition: filename=
From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Sat, 17 Jul 2010 12:55:01 -0500
Received on 2010-07-17
Date: Sat, 17 Jul 2010 12:55:01 -0500
It looks to me like the --remote-header-name option for the command-line
tool assumes that everything beyond the filename= field is part of the
filename, but that might not always be the case, for example:
Content-Disposition: attachment; filename=file.txt; modification-date=etc...
This patch chops the filename off at the next semicolon, if there is one.
- Jeff
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- text/x-patch attachment: cont-disp-parse.diff