projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix date parsing when using international dates (package date edit), RT#8027
[freeside.git]
/
httemplate
/
misc
/
process
/
cancel_pkg.html
diff --git
a/httemplate/misc/process/cancel_pkg.html
b/httemplate/misc/process/cancel_pkg.html
index
669af9c
..
e17872c
100755
(executable)
--- a/
httemplate/misc/process/cancel_pkg.html
+++ b/
httemplate/misc/process/cancel_pkg.html
@@
-44,7
+44,7
@@
my $date = time;
if ($method eq 'expire' || $method eq 'adjourn'){
#untaint date
$date = $cgi->param('date');
if ($method eq 'expire' || $method eq 'adjourn'){
#untaint date
$date = $cgi->param('date');
-
str2
time($cgi->param('date')) =~ /^(\d+)$/ or die "Illegal date";
+
parse_date
time($cgi->param('date')) =~ /^(\d+)$/ or die "Illegal date";
$date = $1;
$method = ($method eq 'expire') ? 'cancel' : 'suspend';
}
$date = $1;
$method = ($method eq 'expire') ? 'cancel' : 'suspend';
}