summaryrefslogtreecommitdiff
path: root/httemplate/misc/payment.cgi
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2018-08-26 17:07:46 -0400
committerMitch Jackson <mitch@freeside.biz>2018-09-07 17:17:17 -0400
commit3b236eac5f7926f18623f6b9dc7c6f0d350ab61c (patch)
treec8083bea8b6fbf86df35756102a4e3e4c8b856d0 /httemplate/misc/payment.cgi
parent6686819fd4feebda67a069e2ba456ea1f53bea64 (diff)
RT# 80869 Harden process payment screen against Edge browser bug
Diffstat (limited to 'httemplate/misc/payment.cgi')
-rw-r--r--httemplate/misc/payment.cgi8
1 files changed, 3 insertions, 5 deletions
diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi
index 44904fba6..9e530cf0a 100644
--- a/httemplate/misc/payment.cgi
+++ b/httemplate/misc/payment.cgi
@@ -59,9 +59,8 @@
<TH><% mt('Exp.') |h %></TH>
<TD>
<SELECT NAME="month">
-% for ( ( map "0$_", 1 .. 9 ), 10 .. 12 ) {
-
- <OPTION<% $_ == $month ? ' SELECTED' : '' %>><% $_ %>
+% for ( map{ sprintf('%02d',$_) } (1..12) ) {
+ <OPTION VALUE="<% $_ %>"<% $_ == $month ? ' SELECTED' : '' %>><% $_ %></OPTION>
% }
</SELECT>
@@ -70,8 +69,7 @@
<TD>
<SELECT NAME="year">
% my @a = localtime; for ( $a[5]+1900 .. $a[5]+1915 ) {
-
- <OPTION<% $_ == $year ? ' SELECTED' : '' %>><% $_ %>
+ <OPTION VALUE="<% $_ %>"<% $_ == $year ? ' SELECTED' : '' %>><% $_ %></OPTION>
% }
</SELECT>