[freeside-commits] freeside/httemplate/misc/process delay_susp_pkg.html, 1.1, 1.1.6.1 cancel_pkg.html, 1.9, 1.9.4.1

Ivan,,, ivan at wavetail.420.am
Fri Apr 9 01:18:38 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/misc/process
In directory wavetail.420.am:/tmp/cvs-serv7411/httemplate/misc/process

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	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.1.6.1
diff -u -w -d -r1.1 -r1.1.6.1
--- delay_susp_pkg.html	26 Sep 2008 03:54:25 -0000	1.1
+++ delay_susp_pkg.html	9 Apr 2010 08:18:36 -0000	1.1.6.1
@@ -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.9.4.1
diff -u -w -d -r1.9 -r1.9.4.1
--- cancel_pkg.html	1 Jul 2008 05:03:42 -0000	1.9
+++ cancel_pkg.html	9 Apr 2010 08:18:36 -0000	1.9.4.1
@@ -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