This commit is contained in:
Maxim Dounin 2017-09-13 15:51:52 +03:00
parent 63f5d46f58
commit 559017768e

View File

@ -44,14 +44,15 @@ ngx_parse_http_time(u_char *value, size_t len)
} }
} }
for (p++; p < end; p++) for (p++; p < end; p++) {
if (*p != ' ') { if (*p != ' ') {
break; break;
} }
}
if (end - p < 18) { if (end - p < 18) {
return NGX_ERROR; return NGX_ERROR;
} }
if (fmt != isoc) { if (fmt != isoc) {
if (*p < '0' || *p > '9' || *(p + 1) < '0' || *(p + 1) > '9') { if (*p < '0' || *p > '9' || *(p + 1) < '0' || *(p + 1) > '9') {