Module: tools Branch: master Commit: 0b94f8cc624e46e0696232ea1cee0c07edc9aac9 URL: https://source.winehq.org/git/tools.git/?a=commit;h=0b94f8cc624e46e0696232ea...
Author: Francois Gouget fgouget@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@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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));