Skip to content

Commit

Permalink
Add regex validation to wsgi_pass_authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Aug 18, 2014
1 parent b41cbf3 commit 80be736
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 @@ -201,6 +201,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 80be736

Please sign in to comment.