summaryrefslogtreecommitdiff
path: root/pinyweb
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2011-05-12 21:24:13 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2011-05-12 21:24:13 -0700
commit7ffed596511dab81353b8af3096e17d104278679 (patch)
tree8ebdb3633b559c77526ef599ebe6bfbc6b6714c5 /pinyweb
parent336f98bc53c1ca862d696d18642ed552f425724e (diff)
downloadpiny-code-7ffed596511dab81353b8af3096e17d104278679.tar.gz
piny-code-7ffed596511dab81353b8af3096e17d104278679.zip
pinyconfig.cgi: enabling variable listing
Diffstat (limited to 'pinyweb')
-rwxr-xr-xpinyweb/cgi-bin/auth/pinyconfig.cgi4
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.';
};