diff options
author | ivan <ivan> | 1998-12-23 03:10:19 +0000 |
---|---|---|
committer | ivan <ivan> | 1998-12-23 03:10:19 +0000 |
commit | 6b842a0891010b36bf7b0596bd062f70bcff7826 (patch) | |
tree | e7683e2ba594764e67205be760fb67150d12539c /htdocs/edit | |
parent | 4ed0ae683393ee52ffc0e6febe395e1083f5277d (diff) |
$cgi->keywords instead of $cgi->query_string
Diffstat (limited to 'htdocs/edit')
-rwxr-xr-x | htdocs/edit/svc_acct_pop.cgi | 10 | ||||
-rwxr-xr-x | htdocs/edit/svc_acct_sm.cgi | 13 | ||||
-rwxr-xr-x | htdocs/edit/svc_domain.cgi | 12 |
3 files changed, 24 insertions, 11 deletions
diff --git a/htdocs/edit/svc_acct_pop.cgi b/htdocs/edit/svc_acct_pop.cgi index 9695d9398..4d41d0b32 100755 --- a/htdocs/edit/svc_acct_pop.cgi +++ b/htdocs/edit/svc_acct_pop.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: svc_acct_pop.cgi,v 1.3 1998-12-17 06:17:10 ivan Exp $ +# $Id: svc_acct_pop.cgi,v 1.4 1998-12-23 02:57:45 ivan Exp $ # # ivan@sisd.com 98-mar-8 # @@ -10,7 +10,10 @@ # lose background, FS::CGI ivan@sisd.com 98-sep-2 # # $Log: svc_acct_pop.cgi,v $ -# Revision 1.3 1998-12-17 06:17:10 ivan +# Revision 1.4 1998-12-23 02:57:45 ivan +# $cgi->keywords instead of $cgi->query_string +# +# Revision 1.3 1998/12/17 06:17:10 ivan # fix double // in relative URLs, s/CGI::Base/CGI/; # # Revision 1.2 1998/11/13 09:56:47 ivan @@ -31,7 +34,8 @@ my($cgi) = new CGI; &cgisuidsetup($cgi); my($svc_acct_pop,$action); -if ( $cgi->query_string =~ /^(\d+)$/ ) { #editing +my($query)=$cgi->keywords; +if ( $query =~ /^(\d+)$/ ) { #editing $svc_acct_pop=qsearchs('svc_acct_pop',{'popnum'=>$1}); $action='Edit'; } else { #adding diff --git a/htdocs/edit/svc_acct_sm.cgi b/htdocs/edit/svc_acct_sm.cgi index 3f96efc4e..7a1b946e0 100755 --- a/htdocs/edit/svc_acct_sm.cgi +++ b/htdocs/edit/svc_acct_sm.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: svc_acct_sm.cgi,v 1.3 1998-12-17 06:17:11 ivan Exp $ +# $Id: svc_acct_sm.cgi,v 1.4 1998-12-23 02:58:45 ivan Exp $ # # Usage: svc_acct_sm.cgi {svcnum} | pkgnum{pkgnum}-svcpart{svcpart} # http://server.name/path/svc_acct_sm.cgi? {svcnum} | pkgnum{pkgnum}-svcpart{svcpart} @@ -35,7 +35,10 @@ # /var/spool/freeside/conf/domain ivan@sisd.com 98-jul-26 # # $Log: svc_acct_sm.cgi,v $ -# Revision 1.3 1998-12-17 06:17:11 ivan +# Revision 1.4 1998-12-23 02:58:45 ivan +# $cgi->keywords instead of $cgi->query_string +# +# Revision 1.3 1998/12/17 06:17:11 ivan # fix double // in relative URLs, s/CGI::Base/CGI/; # # Revision 1.2 1998/12/16 05:19:15 ivan @@ -59,7 +62,9 @@ $conf = new FS::Conf; my $mydomain = $conf->config('domain'); my($action,$svcnum,$svc_acct_sm,$pkgnum,$svcpart,$part_svc); -if ( $cgi->query_string =~ /^(\d+)$/ ) { #editing + +my($query) = $cgi->keywords; +if ( $query =~ /^(\d+)$/ ) { #editing $svcnum=$1; $svc_acct_sm=qsearchs('svc_acct_sm',{'svcnum'=>$svcnum}) @@ -80,7 +85,7 @@ if ( $cgi->query_string =~ /^(\d+)$/ ) { #editing $svc_acct_sm=create FS::svc_acct_sm({}); - foreach $_ (split(/-/,$cgi->query_string)) { #get & untaint pkgnum & svcpart + foreach $_ (split(/-/,$query)) { #get & untaint pkgnum & svcpart $pkgnum=$1 if /^pkgnum(\d+)$/; $svcpart=$1 if /^svcpart(\d+)$/; } diff --git a/htdocs/edit/svc_domain.cgi b/htdocs/edit/svc_domain.cgi index 3d0a2e723..6373ebb48 100755 --- a/htdocs/edit/svc_domain.cgi +++ b/htdocs/edit/svc_domain.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: svc_domain.cgi,v 1.3 1998-12-17 06:17:12 ivan Exp $ +# $Id: svc_domain.cgi,v 1.4 1998-12-23 03:00:16 ivan Exp $ # # Usage: svc_domain.cgi pkgnum{pkgnum}-svcpart{svcpart} # http://server.name/path/svc_domain.cgi?pkgnum{pkgnum}-svcpart{svcpart} @@ -17,7 +17,10 @@ # no GOV in instructions ivan@sisd.com 98-jul-17 # # $Log: svc_domain.cgi,v $ -# Revision 1.3 1998-12-17 06:17:12 ivan +# Revision 1.4 1998-12-23 03:00:16 ivan +# $cgi->keywords instead of $cgi->query_string +# +# Revision 1.3 1998/12/17 06:17:12 ivan # fix double // in relative URLs, s/CGI::Base/CGI/; # # Revision 1.2 1998/11/13 09:56:48 ivan @@ -38,7 +41,8 @@ my($cgi) = new CGI; my($action,$svcnum,$svc_domain,$pkgnum,$svcpart,$part_svc); -if ( $cgi->query_string =~ /^(\d+)$/ ) { #editing +my($query) = $cgi->keywords; +if ( $query =~ /^(\d+)$/ ) { #editing $svcnum=$1; $svc_domain=qsearchs('svc_domain',{'svcnum'=>$svcnum}) @@ -59,7 +63,7 @@ if ( $cgi->query_string =~ /^(\d+)$/ ) { #editing $svc_domain=create FS::svc_domain({}); - foreach $_ (split(/-/,$cgi->query_string)) { + foreach $_ (split(/-/,$query)) { $pkgnum=$1 if /^pkgnum(\d+)$/; $svcpart=$1 if /^svcpart(\d+)$/; } |