[freeside-commits] freeside/httemplate/misc/process delay_susp_pkg.html, 1.1, 1.2 cancel_pkg.html, 1.9, 1.10
Ivan,,,
ivan at wavetail.420.am
Fri Apr 9 01:18:26 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/misc/process
In directory wavetail.420.am:/tmp/cvs-serv7332/httemplate/misc/process
Modified Files:
delay_susp_pkg.html cancel_pkg.html
Log Message:
fix date parsing when using international dates (package date edit), RT#8027
Index: delay_susp_pkg.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/process/delay_susp_pkg.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- delay_susp_pkg.html 26 Sep 2008 03:54:25 -0000 1.1
+++ delay_susp_pkg.html 9 Apr 2010 08:18:24 -0000 1.2
@@ -21,7 +21,7 @@
$pkgnum = $1;
#untaint date
-str2time($cgi->param('date')) =~ /^(\d+)$/ or die "Illegal date";
+parse_datetime($cgi->param('date')) =~ /^(\d+)$/ or die "Illegal date";
my $date = $1;
$cust_pkg = qsearchs( 'cust_pkg', {'pkgnum'=>$pkgnum} );
Index: cancel_pkg.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/process/cancel_pkg.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -w -d -r1.9 -r1.10
--- cancel_pkg.html 1 Jul 2008 05:03:42 -0000 1.9
+++ cancel_pkg.html 9 Apr 2010 08:18:24 -0000 1.10
@@ -44,7 +44,7 @@
if ($method eq 'expire' || $method eq 'adjourn'){
#untaint date
$date = $cgi->param('date');
- str2time($cgi->param('date')) =~ /^(\d+)$/ or die "Illegal date";
+ parse_datetime($cgi->param('date')) =~ /^(\d+)$/ or die "Illegal date";
$date = $1;
$method = ($method eq 'expire') ? 'cancel' : 'suspend';
}
More information about the freeside-commits
mailing list