[freeside-commits] freeside/httemplate/search sqlradius.cgi, 1.13,
1.14
Ivan,,,
ivan at wavetail.420.am
Mon Sep 4 13:15:28 PDT 2006
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv30605/search
Modified Files:
sqlradius.cgi
Log Message:
fix the date/time parsing
Index: sqlradius.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/sqlradius.cgi,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- sqlradius.cgi 4 Sep 2006 20:12:28 -0000 1.13
+++ sqlradius.cgi 4 Sep 2006 20:15:26 -0000 1.14
@@ -93,11 +93,11 @@
my $beginning = '';
my $ending = '';
if ( $cgi->param('beginning')
- && $cgi->param('beginning') =~ /^([ 0-9\-\/]{0,10})$/ ) {
+ && $cgi->param('beginning') =~ /^([ 0-9\-\/\:\w]{0,54})$/ ) {
$beginning = str2time($1);
}
if ( $cgi->param('ending')
- && $cgi->param('ending') =~ /^([ 0-9\-\/]{0,10})$/ ) {
+ && $cgi->param('ending') =~ /^([ 0-9\-\/\:\w]{0,54})$/ ) {
$ending = str2time($1) + 86399;
}
if ( $cgi->param('begin') && $cgi->param('begin') =~ /^(\d+)$/ ) {
More information about the freeside-commits
mailing list