mirror of https://git.kore.io/kore.git
Add missing params for param-test
This commit is contained in:
parent
be48cd56e1
commit
0f59c617df
|
@ -58,6 +58,7 @@ load modules/example/example.module
|
|||
#
|
||||
validator v_example function v_example_func
|
||||
validator v_regex regex ^/test/[a-z]*$
|
||||
validator v_number regex ^[0-9]*$
|
||||
|
||||
# Specify the SSL ciphers that will be used.
|
||||
#ssl_cipher ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK
|
||||
|
@ -126,6 +127,7 @@ domain localhost {
|
|||
# fails. All extra parameters in the GET query are filtered out.
|
||||
params get ^/params-test(\??)[A-Z0-9a-z=&]*$ {
|
||||
validate arg1 v_example
|
||||
validate id v_number
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue