]> granicus.if.org Git - curl/commit
remote-header-name: chop filename at next semicolon
authorJeff Pohlmeyer <yetanothergeek@gmail.com>
Sat, 17 Jul 2010 18:04:02 +0000 (20:04 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 17 Jul 2010 18:12:47 +0000 (20:12 +0200)
commitd76874a6651f4fcc62ddfa6fd7cfefb302bdefbe
tree7b5895843a778c664f5dcd32776eca5eb5ade41d
parentc8d42b2f1c105706098309644c2aa90ae6a1206f
remote-header-name: chop filename at next semicolon

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=...

This fix chops the filename off at the next semicolon, if there is one.
src/main.c