Skip Menu |

This queue is for tickets about the Config-General CPAN distribution.

Report information
The Basics
Id: 89379
Status: resolved
Priority: 0/
Queue: Config-General

People
Owner: Nobody in particular
Requestors: LCONS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.52
Fixed in: (no value)



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...
Show quoted text
> Quoted file names should be supported even with the <<include foo>> > syntax.
Fixed in 2.53. Show quoted text
> 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...
It will. You might use \# instead.