summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2003-10-06 11:39:17 +0000
committerivan <ivan>2003-10-06 11:39:17 +0000
commit22706b6cf7f0be0eb47b8dc812e3e7fa81921c0d (patch)
tree67cc141becb45d74159f6c22e8dc4bde5741915f /httemplate
parentfdd3e96939b0b3bcfab098378394271b0d6bde73 (diff)
fix URL argument processing for account searches by popnum
Diffstat (limited to 'httemplate')
-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 f18dfb919..044001bd2 100755
--- a/httemplate/search/svc_acct.cgi
+++ b/httemplate/search/svc_acct.cgi
@@ -50,10 +50,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 {
@@ -65,7 +64,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";