You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Dave Rolsky <au...@urth.org> on 2000/11/23 02:19:54 UTC

Bug in Apache::test

It seems that when you ask it to scan for dynamic modules and produce the
appropriate conf file you can end up with something like this in there:

LoadModule setenvif_module    "/usr/local/apache_mp"/libexec/mod_setenvif.so

The quotes cause a problem.

Here's a patch against the latest CVS version.

--- test.pm.old Wed Nov 22 19:18:39 2000
+++ test.pm     Wed Nov 22 18:52:31 2000
@@ -148,6 +148,8 @@

     my @modules       =   grep /^\s*(Add|Load)Module/, @lines;
     my ($server_root) = (map /^\s*ServerRoot\s*(\S+)/, @lines);
+    $server_root =~ s/^"//;
+    $server_root =~ s/"$//;

     # Rewrite all modules to load from an absolute path.
     foreach (@modules) {