diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2018-04-05 14:50:45 +0300 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2018-04-05 14:50:45 +0300 |
commit | 69cec78a2385a3eb8c618ef3b357819256bc20e9 (patch) | |
tree | 03fa845bbaafeb790e95dd47b370a94d503c4c89 /nginx/ngx_http_js_module.c | |
parent | 50d3be7b4099c7d6dae7820ff43f6c4caa6657e9 (diff) | |
download | njs-69cec78a2385a3eb8c618ef3b357819256bc20e9.tar.gz njs-69cec78a2385a3eb8c618ef3b357819256bc20e9.zip |
Checking the number argument of HTTP return() method is valid.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r-- | nginx/ngx_http_js_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index d5a6957e..3f08dd7e 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -1284,7 +1284,7 @@ ngx_http_js_ext_return(njs_vm_t *vm, njs_value_t *args, nxt_uint_t nargs, } value = njs_argument(args, 1); - if (!njs_value_is_number(value)) { + if (!njs_value_is_valid_number(value)) { description = "code is not a number"; goto exception; } |