From f06a0610477b0ba8e1931722c3105b880fbc35c3 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 11 Nov 2012 22:18:50 -0800 Subject: [PATCH] fix XSS --- FS/FS/UI/Web/small_custview.pm | 2 +- httemplate/elements/location.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FS/FS/UI/Web/small_custview.pm b/FS/FS/UI/Web/small_custview.pm index 43d76130f..e4b5421a2 100644 --- a/FS/FS/UI/Web/small_custview.pm +++ b/FS/FS/UI/Web/small_custview.pm @@ -88,7 +88,7 @@ sub small_custview { $html .= ''. ntable("#cccccc",2). 'Service
Address'; $html .= join('
', - grep $_, + map encode_entities($_), grep $_, $cust_main->contact, $cust_main->company, $ship->address1, diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index de844e465..0f844531d 100644 --- a/httemplate/elements/location.html +++ b/httemplate/elements/location.html @@ -214,7 +214,7 @@ Example: + VALUE="<% $object->censustract |h %>"> <% '(automatic)' %> @@ -226,7 +226,7 @@ Example: + VALUE="<% $object->district |h %>"> <% '(automatic)' %> -- 2.11.0