diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2012-11-11 23:08:50 -0800 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2012-11-11 23:08:50 -0800 |
| commit | acbc4a9ff91b668197012772172af24b9cc42df6 (patch) | |
| tree | dac458ec6fc08d322aefdc96b8decfc3634b5839 /httemplate/misc/cust_main_note-import.cgi | |
| parent | 1b0e3600f2004f0977c9906b3f7db56f3ca80f5d (diff) | |
fix XSS
Diffstat (limited to 'httemplate/misc/cust_main_note-import.cgi')
| -rw-r--r-- | httemplate/misc/cust_main_note-import.cgi | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/httemplate/misc/cust_main_note-import.cgi b/httemplate/misc/cust_main_note-import.cgi index 72ac556fd..186289517 100644 --- a/httemplate/misc/cust_main_note-import.cgi +++ b/httemplate/misc/cust_main_note-import.cgi @@ -164,7 +164,7 @@ <OPTION VALUE="">---</OPTION> % my $i=0; % foreach (@cust_main) { - <OPTION <% $i ? '' : 'SELECTED' %> VALUE="<% $_->custnum %>"><% $_->name %></OPTION> + <OPTION <% $i ? '' : 'SELECTED' %> VALUE="<% $_->custnum %>"><% $_->name |h %></OPTION> % $i++; % } </SELECT> @@ -172,15 +172,15 @@ var customer_select<% $row %> = document.getElementById("cust_select<% $row %>"); customer_select<% $row %>.onchange = select_customer; </SCRIPT> - <INPUT TYPE="hidden" NAME="name<% $row %>" ID="name<% $row %>" VALUE="<% $i ? $cust_main[0]->name : '' %>"> + <INPUT TYPE="hidden" NAME="name<% $row %>" ID="name<% $row %>" VALUE="<% $i ? $cust_main[0]->name : '' |h %>"> </TD> <TD> - <% $first %> - <INPUT TYPE="hidden" NAME="first<% $row %>" VALUE="<% $first %>"> + <% $first |h %> + <INPUT TYPE="hidden" NAME="first<% $row %>" VALUE="<% $first |h %>"> </TD> <TD> - <% $last %> - <INPUT TYPE="hidden" NAME="last<% $row %>" VALUE="<% $last %>"> + <% $last |h %> + <INPUT TYPE="hidden" NAME="last<% $row %>" VALUE="<% $last |h %>"> </TD> <TD> <% $note %> |
