diff options
author | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2011-05-12 21:24:13 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2011-05-12 21:24:13 -0700 |
commit | 7ffed596511dab81353b8af3096e17d104278679 (patch) | |
tree | 8ebdb3633b559c77526ef599ebe6bfbc6b6714c5 /pinyweb/cgi-bin | |
parent | 336f98bc53c1ca862d696d18642ed552f425724e (diff) | |
download | piny-code-7ffed596511dab81353b8af3096e17d104278679.tar.gz piny-code-7ffed596511dab81353b8af3096e17d104278679.zip |
pinyconfig.cgi: enabling variable listing
Diffstat (limited to 'pinyweb/cgi-bin')
-rwxr-xr-x | pinyweb/cgi-bin/auth/pinyconfig.cgi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pinyweb/cgi-bin/auth/pinyconfig.cgi b/pinyweb/cgi-bin/auth/pinyconfig.cgi index f852a56..af7cebd 100755 --- a/pinyweb/cgi-bin/auth/pinyconfig.cgi +++ b/pinyweb/cgi-bin/auth/pinyconfig.cgi @@ -17,6 +17,10 @@ if( $q->param('r') && $q->param('n') && $q->param('v') ) { unless( system( '/usr/sbin/piny-suid', $ENV{'REMOTE_USER'}, 'pinyconfig', $q->param('r'), $q->param('n'), $q->param('v') ) == 0 ) { die( 'pinyconfig was unsuccessful.' ); }; +} elsif( $q->param('r') ) { + unless( system( '/usr/sbin/piny-suid', $ENV{'REMOTE_USER'}, 'pinyconfig', $q->param('r') ) == 0 ) { + die( 'pinyconfig was unsuccessful.' ); + }; } else { print 'Missing parameters.'; }; |