Merge pull request #689 from erikanderson/master
Convert $priority to integer before comparison
This commit is contained in:
commit
4515925247
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ define nginx::resource::location (
|
||||||
fail('$priority must be an integer.')
|
fail('$priority must be an integer.')
|
||||||
}
|
}
|
||||||
validate_array($rewrite_rules)
|
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.')
|
fail('$priority must be in the range 401-899.')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue