]> git.ipfire.org Git - thirdparty/curl.git/commit
formadd: CURLFORM_FILECONTENT wrongly rejected some option combos
authorDaniel Stenberg <daniel@haxx.se>
Tue, 23 Jul 2013 20:10:44 +0000 (22:10 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 26 Jul 2013 21:45:01 +0000 (23:45 +0200)
commit41fb6443ceeda65c09dbe0e1fd7591269e4966a9
tree9600c8058dc066e976f2d33d0ea7177a9a961f95
parente5dfe6c282366508a2d61660b2ce9b53bf83df3b
formadd: CURLFORM_FILECONTENT wrongly rejected some option combos

The code for CURLFORM_FILECONTENT had its check for duplicate options
wrong so that it would reject CURLFORM_PTRNAME if used in combination
with it (but not CURLFORM_COPYNAME)! The flags field used for this
purpose cannot be interpreted that broadly.

Bug: http://curl.haxx.se/mail/lib-2013-07/0258.html
Reported-by: Byrial Jensen
lib/formdata.c