Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: jyankel [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.45
Fixed in: (no value)



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
This is intended. If you want 2 backslashes in the config output, you'll have to escape them both: path = \\\\server\\path