From e889dd8eaac42019b2c7a34f52d1c6178a514cad Mon Sep 17 00:00:00 2001 From: Daniel Lehman Date: Thu, 12 Mar 2015 23:18:14 -0700 Subject: [PATCH] wininet: Accept Version in cookies. --- dlls/wininet/cookie.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/wininet/cookie.c b/dlls/wininet/cookie.c index fe0615aab2e..af9dcdf9a9c 100644 --- a/dlls/wininet/cookie.c +++ b/dlls/wininet/cookie.c @@ -943,6 +943,7 @@ DWORD set_cookie(const WCHAR *domain, const WCHAR *path, const WCHAR *cookie_nam static const WCHAR szExpires[] = {'e','x','p','i','r','e','s','=',0}; static const WCHAR szSecure[] = {'s','e','c','u','r','e',0}; static const WCHAR szHttpOnly[] = {'h','t','t','p','o','n','l','y',0}; + static const WCHAR szVersion[] = {'v','e','r','s','i','o','n','=',0}; if (!(ptr = strchrW(ptr,';'))) break; *ptr++ = 0; @@ -1023,6 +1024,11 @@ DWORD set_cookie(const WCHAR *domain, const WCHAR *path, const WCHAR *cookie_nam cookie_flags |= INTERNET_COOKIE_HTTPONLY; ptr += strlenW(szHttpOnly); } + else if (strncmpiW(ptr, szVersion, 8) == 0) + { + FIXME("version not handled (%s)\n",debugstr_w(ptr)); + ptr += strlenW(szVersion); + } else if (*ptr) { FIXME("Unknown additional option %s\n",debugstr_w(ptr)); -- 2.11.4.GIT