Skip to content

Commit

Permalink
Merge pull request #775 from ekohl/validate_wsgi_pass_authorization
Browse files Browse the repository at this point in the history
Add regex validation to wsgi_pass_authorization
  • Loading branch information
Morgan Haskel committed Aug 21, 2014
2 parents 3d6e015 + 80be736 commit 08c29d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manifests/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@
"${suexec_user_group} is not supported for suexec_user_group. Must be 'user group'.")
}

if $wsgi_pass_authorization {
validate_re(downcase($wsgi_pass_authorization), '^(on|off)$',
"${wsgi_pass_authorization} is not supported for wsgi_pass_authorization.
Allowed values are 'on' and 'off'.")
}

# Deprecated backwards-compatibility
if $rewrite_base {
warning('Apache::Vhost: parameter rewrite_base is deprecated in favor of rewrites')
Expand Down

0 comments on commit 08c29d0

Please sign in to comment.