]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 509794: Crash if setting a flag with Unicode characters in the name - Patch by...
authorlpsolit%gmail.com <>
Thu, 3 Sep 2009 19:05:33 +0000 (19:05 +0000)
committerlpsolit%gmail.com <>
Thu, 3 Sep 2009 19:05:33 +0000 (19:05 +0000)
template/en/default/request/email.txt.tmpl

index adc0faa1cae95343f47aee7c30237fd74ba6b298..e48b2fc1335178269977958205a3b6134c3bfeab 100644 (file)
@@ -77,7 +77,8 @@ Attachment [% attidsummary %]
 [%- FILTER bullet = wrap(80) %]
 
 [% USE Bugzilla %]
-[% IF Bugzilla.cgi.param("comment") && Bugzilla.cgi.param("comment").length > 0 %]
+[%-# .defined is necessary to avoid a taint issue in Perl < 5.10.1, see bug 509794. %]
+[% IF Bugzilla.cgi.param("comment").defined && Bugzilla.cgi.param("comment").length > 0 %]
 ------- Additional Comments from [% user.identity %]
 [%+ Bugzilla.cgi.param("comment") %]
 [% END %]