commit 0f59c617df17e2254d4ab15a0e47693e0fb3c4d6
parent be48cd56e1803bde706f5320ee984cbbc831ff65
Author: Joris Vink <joris@coders.se>
Date: Thu, 12 Dec 2013 11:36:45 +0100
Add missing params for param-test
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/example/module.conf b/modules/example/module.conf
@@ -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
}
}