Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #8 from silversupreme/master
Browse files Browse the repository at this point in the history
Better regular expressions for mountpoint paths.
  • Loading branch information
Morgan Haskel committed Mar 3, 2015
2 parents 6dcf203 + 976462a commit 76fc4aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/type/mountpoint.rb
Expand Up @@ -37,7 +37,7 @@
validate do |value|
raise Puppet::Error, "name is not allowed to contain whitespace" if value =~ /\s/
raise Puppet::Error, "name is not allowed to have trailing slashes" if value =~ %r{/$}
raise Puppet::Error, "name must be an absolute path" if value =~ %r{^[^/]} or value =~ %r{/../}
raise Puppet::Error, "name must be an absolute path" if value =~ %r{^[^/]} or value =~ %r{/\.\./}
end
end

Expand Down

0 comments on commit 76fc4aa

Please sign in to comment.