Cookies: Don't override cookies with outdated values
authorHannah von Reth <hannah.vonreth@owncloud.com>
Tue, 31 Mar 2020 11:51:18 +0000 (13:51 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:59:09 +0000 (10:59 +0100)
commitf073997aee513ff3666a4e02dc404d8f1d6b4a09
treecdeb27c8c7e0867d3cd62d8f76dbfb5785e6e28f
parent317d3735d7bfbadb7d42e0de2a973b6dfb86b288
Cookies: Don't override cookies with outdated values

This code was actually not breaking most cookie handling by accident.
As the raw cookies where not split properly we added cookies with values like
"key: val; key2 = val2; key3 = val3"
When the code was corrected we overwrote the newer values in the jar with
the old ones from a request.
src/libsync/accessmanager.cpp
src/libsync/accessmanager.h