diff options
author | Ulion <ulion2002@gmail.com> | 2013-01-21 23:20:09 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-01-22 15:43:29 +0100 |
commit | 2698520aef593cbd746a64f79021a4c8d7c83d65 (patch) | |
tree | 69cccacf56e002c7413d8ab7356a92ecfc94212c /tests/getpart.pm | |
parent | fa176376c8af90fcce632db63ac691a471577e8e (diff) | |
download | curl-2698520aef593cbd746a64f79021a4c8d7c83d65.tar.gz |
formpost: support quotes, commas and semicolon in file names
- document the double-quote and backslash need be escaped if quoting.
- libcurl formdata escape double-quote in filename by backslash.
- curl formparse can parse filename both contains '"' and ',' or ';'.
- curl now can uploading file with ',' or ';' in filename.
Bug: http://curl.haxx.se/bug/view.cgi?id=1171
Diffstat (limited to 'tests/getpart.pm')
-rw-r--r-- | tests/getpart.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/getpart.pm b/tests/getpart.pm index 58bb3e42c..92a237830 100644 --- a/tests/getpart.pm +++ b/tests/getpart.pm @@ -56,7 +56,7 @@ sub getpartattr { $inside++; my $attr=$1; - while($attr =~ s/ *([^=]*)= *(\"([^\"]*)\"|([^\"> ]*))//) { + while($attr =~ s/ *([^=]*)= *(\"([^\"]*)\"|([^\> ]*))//) { my ($var, $cont)=($1, $2); $cont =~ s/^\"(.*)\"$/$1/; $hash{$var}=$cont; |