don't use CGI::Fast because we restart apache
authorMatthias Förste <foerste@schlittermann.de>
Wed, 13 Jul 2011 13:41:08 +0200
changeset 12 e0e126b7f06d
parent 11 2217a0f2ded2
child 13 269a29264c61
child 37 fee44892ca1e
don't use CGI::Fast because we restart apache
Build.PL
cgi-bin/admin/dav-htuseradd.cgi
--- a/Build.PL	Wed Jul 13 13:23:03 2011 +0200
+++ b/Build.PL	Wed Jul 13 13:41:08 2011 +0200
@@ -36,7 +36,6 @@
     requires => {
         'Apache::Htpasswd' => 0,
         'AppConfig' => 0,
-        'CGI::Fast' => 0,
         'File::Path' => 0,
         'POSIX' => 0,
         'String::MkPasswd' => 0
--- a/cgi-bin/admin/dav-htuseradd.cgi	Wed Jul 13 13:23:03 2011 +0200
+++ b/cgi-bin/admin/dav-htuseradd.cgi	Wed Jul 13 13:41:08 2011 +0200
@@ -19,10 +19,13 @@
 
 use warnings;
 
-use CGI::Fast;
+# Using CGI::Fast will result in an Internal Server Error because we are
+# restarting apache when everything else works
+# use CGI::Fast;
+use CGI;
 use Ius::Dav::Htpasswd qw(mkpasswd readconfig useradd);
 
-while (my $q = new CGI::Fast) {
+my $q = new CGI;
 
     print $q->header(-charset => 'UTF-8');
     print $q->start_html(
@@ -60,5 +63,3 @@
     }
 
     print $q->end_html;
-
-}