Francois Gouget : testbot/web: Use double quotes for the content-disposition filename.
Alexandre Julliard
julliard at winehq.org
Tue Oct 22 12:22:11 CDT 2019
Module: tools
Branch: master
Commit: 0b94f8cc624e46e0696232ea1cee0c07edc9aac9
URL: https://source.winehq.org/git/tools.git/?a=commit;h=0b94f8cc624e46e0696232ea1cee0c07edc9aac9
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Tue Oct 22 11:14:23 2019 +0200
testbot/web: Use double quotes for the content-disposition filename.
It does not support single quotes which end up being included in the
suggested filename.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
testbot/web/GetTaskFile.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/web/GetTaskFile.pl b/testbot/web/GetTaskFile.pl
index 83e723e..35f2433 100644
--- a/testbot/web/GetTaskFile.pl
+++ b/testbot/web/GetTaskFile.pl
@@ -49,7 +49,7 @@ sub SendTaskFile($$$$$)
$Request->content_type("text/plain");
$Request->headers_out->add("Content-length", $FileSize);
$Request->headers_out->add("Content-Disposition",
- "attachment; filename='$File'");
+ "attachment; filename=\"$File\"");
$BlkSize ||= 16384;
print $_ while (sysread($fh, $_, $BlkSize));
More information about the wine-cvs
mailing list