summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGES4
-rw-r--r--lib/Config/Grammar.pm2
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index de0fd06..d84524a 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,7 +1,9 @@
+* remove a quotemeta() call in Config::Grammar to allow metacharacters
+ at the right side of '@define'
+ -- niko, reported by Warrick FitzGerald <lists.smokeping.wfitzgerald *crtman.com>
* set LC_NUMERIC to C so that users who work with a locale like french that
would use , as a decimal separator do not trip over failing regexp-matches
(tobi)
-
* bugfix for CiscoRTTMonEchoICMP packetsize variable
-- niko, from Sam Stickland <sam_ml *spacething.org>
* tune DS properties min/max/heartbeat instead of just complaing about
diff --git a/lib/Config/Grammar.pm b/lib/Config/Grammar.pm
index 5bc76a3..7cd71f1 100644
--- a/lib/Config/Grammar.pm
+++ b/lib/Config/Grammar.pm
@@ -587,7 +587,7 @@ sub _parse_line($$$)
return 1;
};
/^\@define\s+(\S+)\s+(.*)$/ and do {
- $self->{defines}{$1}=quotemeta $2;
+ $self->{defines}{$1}=$2;
return 1;
};