diff options
author | Tomas Doran <bobtfish@bobtfish.net> | 2013-07-02 11:18:42 +0100 |
---|---|---|
committer | Adrien Thebo <git@somethingsinistral.net> | 2013-07-22 13:12:28 -0700 |
commit | b2e23dc65bd9851dcb6ad60ffca1acbc70b617e1 (patch) | |
tree | 6a0bf65f61575edd8b8ad1ebaedc6fbd7726201b /lib/puppet/parser/functions | |
parent | e0d4588bd2470109bd1eea4e597f1d205bf01b52 (diff) | |
download | puppet-stdlib-b2e23dc65bd9851dcb6ad60ffca1acbc70b617e1.tar.gz puppet-stdlib-b2e23dc65bd9851dcb6ad60ffca1acbc70b617e1.tar.bz2 |
Adjust to use default URI.escape escape list
Conform to RFC per comments on: https://github.com/puppetlabs/puppetlabs-stdlib/pull/164
Conflicts:
lib/puppet/parser/functions/uriescape.rb
spec/unit/puppet/parser/functions/uriescape_spec.rb
Diffstat (limited to 'lib/puppet/parser/functions')
-rw-r--r-- | lib/puppet/parser/functions/uriescape.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/puppet/parser/functions/uriescape.rb b/lib/puppet/parser/functions/uriescape.rb index 67b93a6..0d81de5 100644 --- a/lib/puppet/parser/functions/uriescape.rb +++ b/lib/puppet/parser/functions/uriescape.rb @@ -15,7 +15,6 @@ module Puppet::Parser::Functions value = arguments[0] klass = value.class - unsafe = ":/?#[]@!$&'()*+,;= " unless [Array, String].include?(klass) raise(Puppet::ParseError, 'uriescape(): Requires either ' + @@ -26,7 +25,7 @@ module Puppet::Parser::Functions # Numbers in Puppet are often string-encoded which is troublesome ... result = value.collect { |i| i.is_a?(String) ? URI.escape(i,unsafe) : i } else - result = URI.escape(value,unsafe) + result = URI.escape(value) end return result |