From: Ivan Kohler Date: Thu, 25 Apr 2013 11:09:31 +0000 (-0700) Subject: fix XSS X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=d295c1176370d42a4754c26debfed390e0829f15;p=freeside.git fix XSS --- diff --git a/fs_selfservice/FS-SelfService/cgi/small_custview.html b/fs_selfservice/FS-SelfService/cgi/small_custview.html index 8d6e07368..470fe7151 100644 --- a/fs_selfservice/FS-SelfService/cgi/small_custview.html +++ b/fs_selfservice/FS-SelfService/cgi/small_custview.html @@ -10,10 +10,10 @@ Customer #<%= $custnum %> ? 'Billing Address
' : '' %> - <%= $first %> <%= $last %>
- <%= $company ? $company.'
' : '' %> - <%= $address1 %>
- <%= $address2 ? $address2.'
' : '' %> + <%= encode_entities($first) %> <%= encode_entities($last) %>
+ <%= $company ? encode_entities($company).'
' : '' %> + <%= encode_entities($address1) %>
+ <%= $address2 ? encode_entities($address2).'
' : '' %> <%= $city %>, <%= $state %> <%= $zip %>
<%= $country && $country ne ($countrydefault||'US') ? $country.'
'