This commit is contained in:
Maxim Dounin 2017-09-13 15:51:52 +03:00
parent 16cde140ff
commit e666c4ff67
1 changed files with 3 additions and 2 deletions

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 != ' ') {
break;
}
}
if (end - p < 18) {
return NGX_ERROR;
}
}
if (fmt != isoc) {
if (*p < '0' || *p > '9' || *(p + 1) < '0' || *(p + 1) > '9') {