From: Ivan Kohler Date: Mon, 12 Nov 2012 06:18:50 +0000 (-0800) Subject: fix XSS X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=f06a0610477b0ba8e1931722c3105b880fbc35c3 fix XSS --- 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)' %>