Subject: | Quoted file names should be supported with non-Apache includes too |
The current (2.52) code contains:
# bugfix rt.cpan.org#38635: support quoted filenames
if ($this->{UseApacheInclude}) {
if (/^\s*include\s*(["'])(.*?)(?<!\\)\1$/i) {
$incl_file = $2;
}
elsif (/^\s*include\s+(.+?)\s*$/i) {
$incl_file = $1;
}
}
else {
if (/^\s*<<include\s+(.+?)>>\s*$/i) {
$incl_file = $1;
}
}
Quoted file names should be supported even with the <<include foo>> syntax.
FWIW, I had problems with the following configuration:
<<include foo#bar.cfg>>
I hope that the following:
<<include "foo#bar.cfg">>
will prevent Config::General from treating the # as the start of a comment...