summaryrefslogtreecommitdiff
path: root/pinyweb/cgi-bin/auth/addaccess.cgi
diff options
context:
space:
mode:
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.' );
};