Commit d797e5fc authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

wininet: Handle invalid HTTP time of "0".

parent 075ad8ea
...@@ -4255,9 +4255,15 @@ static BOOL HTTP_ParseRfc1123Date(LPCWSTR value, FILETIME *ft) ...@@ -4255,9 +4255,15 @@ static BOOL HTTP_ParseRfc1123Date(LPCWSTR value, FILETIME *ft)
*/ */
static BOOL HTTP_ParseDate(LPCWSTR value, FILETIME *ft) static BOOL HTTP_ParseDate(LPCWSTR value, FILETIME *ft)
{ {
static const WCHAR zero[] = { '0',0 };
BOOL ret; BOOL ret;
if (strchrW(value, ',')) if (!strcmpW(value, zero))
{
ft->dwLowDateTime = ft->dwHighDateTime = 0;
ret = TRUE;
}
else if (strchrW(value, ','))
ret = HTTP_ParseRfc1123Date(value, ft); ret = HTTP_ParseRfc1123Date(value, ft);
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment