summaryrefslogtreecommitdiff
path: root/pinyweb/cgi-bin/auth/newrepo.cgi
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2011-05-12 21:35:22 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2011-05-12 21:35:22 -0700
commitbde32987fd3b9ccb1c830bb290fa4008b3a8c84c (patch)
treef49c72d5d0f15f894fddf7e866adfdbd1bb11b05 /pinyweb/cgi-bin/auth/newrepo.cgi
parent7ffed596511dab81353b8af3096e17d104278679 (diff)
downloadpiny-code-bde32987fd3b9ccb1c830bb290fa4008b3a8c84c.tar.gz
piny-code-bde32987fd3b9ccb1c830bb290fa4008b3a8c84c.zip
pinyweb: making '0' an acceptable variable value
Diffstat (limited to 'pinyweb/cgi-bin/auth/newrepo.cgi')
-rwxr-xr-xpinyweb/cgi-bin/auth/newrepo.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/pinyweb/cgi-bin/auth/newrepo.cgi b/pinyweb/cgi-bin/auth/newrepo.cgi
index 000be02..aa42732 100755
--- a/pinyweb/cgi-bin/auth/newrepo.cgi
+++ b/pinyweb/cgi-bin/auth/newrepo.cgi
@@ -13,7 +13,7 @@ $q = CGI->new;
print( "Content-type: text/plain\n\n");
-if( $q->param('r') && $q->param('d') ) {
+if( defined( $q->param('r') ) && defined( $q->param('d') ) ) {
unless( open2( OUT, IN, '/usr/sbin/piny-suid', $ENV{'REMOTE_USER'}, 'newrepo', '--batch', $q->param('r') ) ) {
die 'could not execute newrepo';
};