summaryrefslogtreecommitdiff
path: root/httemplate/search/svc_acct.cgi
diff options
context:
space:
mode:
authorivan <ivan>2003-10-06 11:39:19 +0000
committerivan <ivan>2003-10-06 11:39:19 +0000
commitb144cab922a4c09462f0335e4835a72c985bb56a (patch)
tree6e3c458246a68e19376ccec4ec08cab0a57e876b /httemplate/search/svc_acct.cgi
parent3ca42bd26b6724fa389c9a3e08d091e65954b616 (diff)
fix URL argument processing for account searches by popnum
Diffstat (limited to 'httemplate/search/svc_acct.cgi')
-rwxr-xr-xhttemplate/search/svc_acct.cgi7
1 files changed, 3 insertions, 4 deletions
diff --git a/httemplate/search/svc_acct.cgi b/httemplate/search/svc_acct.cgi
index cd86031c5..e20649cd9 100755
--- a/httemplate/search/svc_acct.cgi
+++ b/httemplate/search/svc_acct.cgi
@@ -48,10 +48,9 @@ if ( $query eq 'svcnum' ) {
$sortby=\*uid_sort;
$orderby = ( $unlinked ? 'AND' : 'WHERE' ).
" ${tblname}uid IS NOT NULL ORDER BY ${tblname}uid";
-} elsif ( $query =~ /^popnum=(\d+)$/ ) {
- my $popnum = $1;
+} elsif ( $cgi->param('popnum') =~ /^(\d+)$/ ) {
$unlinked .= ( $unlinked ? 'AND' : 'WHERE' ).
- " popnum = $popnum";
+ " popnum = $1";
$sortby=\*username_sort;
$orderby = "ORDER BY ${tblname}username";
} else {
@@ -63,7 +62,7 @@ if ( $query eq 'svcnum' ) {
if ( $query eq 'svcnum'
|| $query eq 'username'
|| $query eq 'uid'
- || $query =~ /^popnum=(\d+)$/
+ || $cgi->param('popnum') =~ /^(\d+)$/
) {
my $statement = "SELECT COUNT(*) FROM svc_acct $unlinked";