From 954ed54e8053a3333ca407deb5efcfffb4f28f8d Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 25 Dec 2007 23:50:19 +0000 Subject: ho ho ho, merry XSSmas --- httemplate/misc/batch-cust_pay.html | 6 +----- httemplate/misc/cancel_cust.html | 5 +---- httemplate/misc/cancel_pkg.html | 5 +---- httemplate/misc/change_pkg.cgi | 5 +---- httemplate/misc/process/meta-import.cgi | 4 +++- httemplate/misc/recharge_svc.html | 5 +---- 6 files changed, 8 insertions(+), 22 deletions(-) (limited to 'httemplate/misc') diff --git a/httemplate/misc/batch-cust_pay.html b/httemplate/misc/batch-cust_pay.html index d85f3b6c3..341629ba6 100644 --- a/httemplate/misc/batch-cust_pay.html +++ b/httemplate/misc/batch-cust_pay.html @@ -5,12 +5,8 @@ ( $cgi->param('error') ? '' : 'onload="addRow()"' ), ) %> -% if ( $cgi->param('error') ) { - - <% $cgi->param('error') %>

-% } - +<% include('/elements/error.html') %>
diff --git a/httemplate/misc/cancel_cust.html b/httemplate/misc/cancel_cust.html index 022fc108f..11ade7e15 100644 --- a/httemplate/misc/cancel_cust.html +++ b/httemplate/misc/cancel_cust.html @@ -1,9 +1,6 @@ <% include('/elements/header-popup.html', 'Cancel customer' ) %> -% if ( $cgi->param('error') ) { - Error: <% $cgi->param('error') %> -

-% } +<% include('/elements/error.html') %> diff --git a/httemplate/misc/cancel_pkg.html b/httemplate/misc/cancel_pkg.html index b085d2281..28d0dd912 100755 --- a/httemplate/misc/cancel_pkg.html +++ b/httemplate/misc/cancel_pkg.html @@ -9,10 +9,7 @@ -% if ( $cgi->param('error') ) { - Error: <% $cgi->param('error') %> -

-% } +<% include('/elements/error.html') %> diff --git a/httemplate/misc/change_pkg.cgi b/httemplate/misc/change_pkg.cgi index 4bf15a1fa..7c88876d4 100755 --- a/httemplate/misc/change_pkg.cgi +++ b/httemplate/misc/change_pkg.cgi @@ -1,9 +1,6 @@ <% include('/elements/header-popup.html', "Change Package") %> -% if ( $cgi->param('error') ) { - Error: <% $cgi->param('error') %> -

-% } +<% include('/elements/error.html') %> diff --git a/httemplate/misc/process/meta-import.cgi b/httemplate/misc/process/meta-import.cgi index 5a97d1160..1cf178c08 100644 --- a/httemplate/misc/process/meta-import.cgi +++ b/httemplate/misc/process/meta-import.cgi @@ -182,4 +182,6 @@ function SafeOnsubmit() { % } % % - +<%init> +die "meta-import script not currently enabled"; #make XSS-safe if this is used for more than just admins to import data.... + diff --git a/httemplate/misc/recharge_svc.html b/httemplate/misc/recharge_svc.html index 634be0600..a3de13d92 100755 --- a/httemplate/misc/recharge_svc.html +++ b/httemplate/misc/recharge_svc.html @@ -1,9 +1,6 @@ <% include('/elements/header-popup.html', 'Recharge Service' ) %> -% if ( $cgi->param('error') ) { - Error: <% $cgi->param('error') %> -

-% } +<% include('/elements/error.html') %> -- cgit v1.2.1