summaryrefslogtreecommitdiff
path: root/pinyweb/cgi-bin/auth/addaccess.cgi
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2011-05-13 15:15:29 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2011-05-13 15:15:29 -0700
commitd9df093f1837f971090def69fb20e5677cb364da (patch)
tree115b6df9f9a03a79cfdd855003b3b7c0b0447e79 /pinyweb/cgi-bin/auth/addaccess.cgi
parentc4fb9497982e2f51c1afefd43f94be8c6cc74edc (diff)
parent9a8be1d87c03fbcdbc7b62e1369cdfe3f5aba193 (diff)
downloadpiny-code-d9df093f1837f971090def69fb20e5677cb364da.tar.gz
piny-code-d9df093f1837f971090def69fb20e5677cb364da.zip
Merge branch 'master' of ssh://piny/srv/git/piny-code
Diffstat (limited to 'pinyweb/cgi-bin/auth/addaccess.cgi')
-rwxr-xr-xpinyweb/cgi-bin/auth/addaccess.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/pinyweb/cgi-bin/auth/addaccess.cgi b/pinyweb/cgi-bin/auth/addaccess.cgi
index fca9574..f86c19e 100755
--- a/pinyweb/cgi-bin/auth/addaccess.cgi
+++ b/pinyweb/cgi-bin/auth/addaccess.cgi
@@ -13,7 +13,7 @@ $q = CGI->new;
print( "Content-type: text/plain\n\n");
-if( $q->param('r') && $q->param('n') ) {
+if( defined( $q->param('r') ) && defined( $q->param('n') ) ) {
unless( system( '/usr/sbin/piny-suid', $ENV{'REMOTE_USER'}, 'addaccess', $q->param('r'), $q->param('n') ) == 0 ) {
die( 'Addaccess was unsuccessful.' );
};