X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcdr.html;h=7e62447147c7d468d8bb0ad8c3ba2e481230f352;hb=e168ca3db2702bd9a540316cd9bd840238dd19ce;hp=bf59ff625bcac6eb831001ca86db49c527fb7676;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984;p=freeside.git diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index bf59ff625..7e6244714 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -182,7 +182,7 @@ if ( $cgi->param('dst') ) { if ( $cgi->param('dcontext') =~ /^\s*(.+)\s*$/ ) { my $dcontext = $1; $hashref->{'dcontext'} = $dcontext; - push @search, "dcontext = '$dcontext'"; + push @search, 'dcontext = '. dbh->quote($dcontext); } if ( $cgi->param('charged_party') ) { @@ -208,6 +208,12 @@ if ( $cgi->param('charged_party_or_src') ) { push @qsearch, $search; } +if ( $cgi->param('lastapp') =~ /^\s*(.+)\s*$/ ) { + my $lastapp = $1; + $hashref->{'lastapp'} = $lastapp; + push @search, 'lastapp = '. dbh->quote($lastapp); +} + if ( $cgi->param('svcnum') =~ /^([\d, ]+)$/ ) { my $svcnum = $1; my $search = "svcnum IN ($svcnum)";