CC: | steve.grazzini [...] grantstreet.com |
Subject: | Patch to correct newline/comment stripping |
The over-agressive comment-stripping caused problems with our svkc
workdir paths (e.g. "GSG-App#trunk/whatever").
Apache docs say that:
Lines which begin with the hash character "#" are considered
comments, and are ignored. Comments may not be included on a
line after a configuration directive.
http://httpd.apache.org/docs/1.3/configuring.html#syntax
So this seems more accurate
Subject: | Apache-ConfigFile-1.18-comment_strip.patch |
diff -PurN Apache-ConfigFile-1.18.orig/ConfigFile.pm Apache-ConfigFile-1.18/ConfigFile.pm
--- Apache-ConfigFile-1.18.orig/ConfigFile.pm 2001-09-18 14:31:38.000000000 -0400
+++ Apache-ConfigFile-1.18/ConfigFile.pm 2008-08-13 13:18:39.000000000 -0400
@@ -204,7 +204,7 @@
$line++;
# Strip newlines/comments
- s/\s*#.*//;
+ s/^\s*#.*//;
# If nothing's left, continue
next unless $_;