aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-08-11 17:50:37 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-08-11 17:50:37 +0000
commitaf9bb9a14e391cacac915d7ce09a0ac9317d0621 (patch)
tree055ada5aec4fe0228fb297338bf7f5c420552679 /src
parent88c295c009587373f5bbca5d8143c3a35213fff6 (diff)
downloadnginx-af9bb9a14e391cacac915d7ce09a0ac9317d0621.tar.gz
nginx-af9bb9a14e391cacac915d7ce09a0ac9317d0621.zip
check daily time range
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_headers_filter_module.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_headers_filter_module.c b/src/http/modules/ngx_http_headers_filter_module.c
index f162a892e..f4a6fe76f 100644
--- a/src/http/modules/ngx_http_headers_filter_module.c
+++ b/src/http/modules/ngx_http_headers_filter_module.c
@@ -553,6 +553,12 @@ ngx_http_headers_expires(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
return "invalid value";
}
+ if (hcf->expires == NGX_HTTP_EXPIRES_DAILY
+ && hcf->expires_time > 24 * 60 * 60)
+ {
+ return "daily time value must be less than 24 hours";
+ }
+
if (hcf->expires_time == NGX_PARSE_LARGE_TIME) {
return "value must be less than 68 years";
}