From: ivan Date: Mon, 4 Sep 2006 20:15:26 +0000 (+0000) Subject: fix the date/time parsing X-Git-Tag: freeside_1_7_2~1^2~342 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=8f00c7e7497ade051cb0306007036799b3b58c2e;p=freeside.git fix the date/time parsing --- diff --git a/httemplate/search/sqlradius.cgi b/httemplate/search/sqlradius.cgi index 95f4147af..68c449ee5 100644 --- a/httemplate/search/sqlradius.cgi +++ b/httemplate/search/sqlradius.cgi @@ -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+)$/ ) {