summaryrefslogtreecommitdiff
path: root/pinyweb/cgi-bin/auth/newrepo.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'pinyweb/cgi-bin/auth/newrepo.cgi')
-rwxr-xr-xpinyweb/cgi-bin/auth/newrepo.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/pinyweb/cgi-bin/auth/newrepo.cgi b/pinyweb/cgi-bin/auth/newrepo.cgi
index 94b25e9..46c5993 100755
--- a/pinyweb/cgi-bin/auth/newrepo.cgi
+++ b/pinyweb/cgi-bin/auth/newrepo.cgi
@@ -18,14 +18,14 @@ print( "Content-type: text/plain\n\n");
if( defined( $q->param('r') ) && defined( $q->param('d') ) ) { # repository, description
@cmd = ( '/usr/sbin/piny-suid', $ENV{'REMOTE_USER'}, 'newrepo', '--batch', '--enable-ikiwiki', $q->param('r') );
- if( defined( $q->param('i') ) && $q->param('i') eq "0" ) {
+ if( defined( scalar( $q->param('i') ) ) && scalar( $q->param('i') ) eq "0" ) {
push( @cmd, '--disable-ikiwiki' );
- } elsif( defined( $q->param('i') ) && $q->param('i') eq "1" ) {
+ } elsif( defined( scalar( $q->param('i') ) ) && scalar( $q->param('i') ) eq "1" ) {
push( @cmd, '--enable-ikiwiki' );
};
if( defined( $q->param('s') ) ) { # source
- push( @cmd, $q->param('s') );
+ push( @cmd, scalar( $q->param('s') ) );
};
unless( open2( OUT, IN, @cmd ) ) {