Francois Gouget : testbot: Escape error messages for HTML as they may contain troublesome characters.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Aug 7 14:43:52 CDT 2014
Module: tools
Branch: master
Commit: 854659751fcc17aa29edefa3316e262064298224
URL: http://source.winehq.org/git/tools.git/?a=commit;h=854659751fcc17aa29edefa3316e262064298224
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Thu Aug 7 01:19:42 2014 +0200
testbot: Escape error messages for HTML as they may contain troublesome characters.
---
testbot/lib/WineTestBot/CGI/PageBase.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/lib/WineTestBot/CGI/PageBase.pm b/testbot/lib/WineTestBot/CGI/PageBase.pm
index a724507..50e1629 100644
--- a/testbot/lib/WineTestBot/CGI/PageBase.pm
+++ b/testbot/lib/WineTestBot/CGI/PageBase.pm
@@ -340,7 +340,7 @@ sub GenerateErrorDiv($$)
if ($ErrMessage)
{
print "<noscript>\n";
- print "<div id='errormessage'>", $ErrMessage, "</div>\n";
+ print "<div id='errormessage'>", $Page->CGI->escapeHTML($ErrMessage), "</div>\n";
print "</noscript>\n";
}
}
More information about the wine-cvs
mailing list