Klaus Demo nginx / af9bb9a
check daily time range Igor Sysoev 11 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
552552 return "invalid value";
553553 }
554554
555 if (hcf->expires == NGX_HTTP_EXPIRES_DAILY
556 && hcf->expires_time > 24 * 60 * 60)
557 {
558 return "daily time value must be less than 24 hours";
559 }
560
555561 if (hcf->expires_time == NGX_PARSE_LARGE_TIME) {
556562 return "value must be less than 68 years";
557563 }