Skip to content

Commit

Permalink
Add a validate_string check for custom_fragment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Haskel committed Aug 7, 2014
1 parent 328cbf8 commit fa8bf12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@
validate_re($fallbackresource, '^/|disabled', 'Please make sure fallbackresource starts with a / (or is "disabled")')
}

if $custom_fragment {
validate_string($custom_fragment)
}

if $ssl and $ensure == 'present' {
include ::apache::mod::ssl
# Required for the AddType lines.
Expand Down

0 comments on commit fa8bf12

Please sign in to comment.