Subject: | Fix for rt.cpan.org#50647 breaks url config values |
When using a url as a config value in 2.44 or below you get the expected
result. After the fix (rt.cpan.org#50647) in version 2.45 it returns
the url improperly escaping (at least in this case) the double backslash.
Commenting out Lines 1086-1087 in current version 2.49 fixes this
instance for me.
# are there any escaped characters left? put them out as is
$value =~ s/\\([\$\\\"#])/$1/g;
Example 2.43.
path = \\server\path #(contents of $file)
my $conf = new Config::General(
-ConfigFile => $file,
-ExtendedAccess => 1,
-Tie => "Tie::DxHash",
-AutoTrue => 1,
-InterPolateVars => 1,
-InterPolateEnv => 1,
-IncludeRelative => 1,
-IncludeDirectories => 1
);
print "Path = " . $conf->value("path");
\\server\path
Example Version >= 2.45
print "Path = " . $conf->value("path");
\server\path