]> 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:08:52 +0000 (19:08 +0000)
committerlpsolit%gmail.com <>
Thu, 3 Sep 2009 19:08:52 +0000 (19:08 +0000)
template/en/default/request/email.txt.tmpl

index 81948c42c50519dd196f8f5a9282d8a73403ba84..9ba7aa24311eb27c375ce57cc109854094e57b0e 100644 (file)
@@ -74,7 +74,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 %]