From d295c1176370d42a4754c26debfed390e0829f15 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 25 Apr 2013 04:09:31 -0700 Subject: [PATCH] fix XSS --- fs_selfservice/FS-SelfService/cgi/small_custview.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.'
' -- 2.11.0