Merge pull request #689 from erikanderson/master

Convert $priority to integer before comparison
This commit is contained in:
James Fryman 2015-10-01 22:26:35 -05:00
commit 4515925247

View file

@ -308,7 +308,7 @@ define nginx::resource::location (
fail('$priority must be an integer.')
}
validate_array($rewrite_rules)
if ($priority < 401) or ($priority > 899) {
if (($priority + 0) < 401) or (($priority + 0) > 899) {
fail('$priority must be in the range 401-899.')
}