summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSean Millichamp <sean.millichamp@secure-24.com>2015-02-14 10:46:34 -0500
committerSean Millichamp <sean.millichamp@secure-24.com>2015-02-14 10:49:26 -0500
commit1321d586a88edb7c8bf07c5edb2d5ce2ae44c1a3 (patch)
tree42096aa0922259f42c774b987884cf16c59bcac6 /lib
parentad5727266a5c243cebf8007b9b00ffc80674b4fc (diff)
downloadpuppet-stdlib-1321d586a88edb7c8bf07c5edb2d5ce2ae44c1a3.tar.gz
puppet-stdlib-1321d586a88edb7c8bf07c5edb2d5ce2ae44c1a3.tar.bz2
(MODULES-1771) Don't modify input to is_domain_name()
Fix is_domain_name() so it dup's its incoming argument to avoid changing the original with a later chomp!
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/parser/functions/is_domain_name.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/is_domain_name.rb b/lib/puppet/parser/functions/is_domain_name.rb
index b3fee96..24cc208 100644
--- a/lib/puppet/parser/functions/is_domain_name.rb
+++ b/lib/puppet/parser/functions/is_domain_name.rb
@@ -13,7 +13,7 @@ Returns true if the string passed to this function is a syntactically correct do
"given #{arguments.size} for 1")
end
- domain = arguments[0]
+ domain = arguments[0].dup
# Limits (rfc1035, 3.1)
domain_max_length=255