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.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/pinyweb/cgi-bin/auth/newrepo.cgi b/pinyweb/cgi-bin/auth/newrepo.cgi
index 46c5993..dfd9f02 100755
--- a/pinyweb/cgi-bin/auth/newrepo.cgi
+++ b/pinyweb/cgi-bin/auth/newrepo.cgi
@@ -1,8 +1,6 @@
#!/usr/bin/perl
$| = 1;
-open(STDERR, ">&STDOUT");
-
use warnings;
use CGI;
@@ -15,6 +13,8 @@ my @cmd;
print( "Content-type: text/plain\n\n");
+open(STDERR, ">&STDOUT");
+
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') );