From bde32987fd3b9ccb1c830bb290fa4008b3a8c84c Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Thu, 12 May 2011 21:35:22 -0700 Subject: pinyweb: making '0' an acceptable variable value --- pinyweb/cgi-bin/auth/rmaccess.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pinyweb/cgi-bin/auth/rmaccess.cgi') 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.' ); }; -- cgit v1.2.3