summaryrefslogtreecommitdiff
path: root/pinyweb/cgi-bin/auth/rmaccess.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'pinyweb/cgi-bin/auth/rmaccess.cgi')
-rwxr-xr-xpinyweb/cgi-bin/auth/rmaccess.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/pinyweb/cgi-bin/auth/rmaccess.cgi b/pinyweb/cgi-bin/auth/rmaccess.cgi
index 5123041..35736ab 100755
--- a/pinyweb/cgi-bin/auth/rmaccess.cgi
+++ b/pinyweb/cgi-bin/auth/rmaccess.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'}, 'rmaccess', $q->param('r'), $q->param('n') ) == 0 ) {
die( 'rmaccess was unsuccessful.' );
};