RT# 31964 Fix XSS
authorMitch Jackson <mitch@freeside.biz>
Sat, 27 Oct 2018 23:18:40 +0000 (19:18 -0400)
committerMitch Jackson <mitch@freeside.biz>
Sat, 27 Oct 2018 23:18:40 +0000 (19:18 -0400)
httemplate/view/prospect_main.html

index f4dd414..f9f22aa 100644 (file)
@@ -24,8 +24,8 @@
 % foreach my $prospect_contact ( $prospect_main->prospect_contact ) {
 %   my $contact = $prospect_contact->contact;
     <TR>
-      <TH ALIGN="right"><% $prospect_contact->contact_classname %> Contact</TD>
-      <TD BGCOLOR="#FFFFFF"><% $contact->line %></TD>
+      <TH ALIGN="right"><% $prospect_contact->contact_classname |h %> Contact</TD>
+      <TD BGCOLOR="#FFFFFF"><% $contact->line |h %></TD>
     </TR>
 %}
 
@@ -55,7 +55,7 @@
   <TR>
     <TH ALIGN="right">Tax status</TD>
     <TD BGCOLOR="#FFFFFF">
-      <B><% $tax_status->taxstatus %>:</B> <% $tax_status->description %>
+      <B><% $tax_status->taxstatus |h %>:</B> <% $tax_status->description |h %>
     </TD>
   </TR>
 % }