From 0409b8aa646ea5192cd91976a89f71024129344c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 20 Jun 2024 06:01:55 +0200 Subject: Adding upstream version 127.0.1. Signed-off-by: Daniel Baumann --- netwerk/cookie/CookieService.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'netwerk/cookie/CookieService.cpp') diff --git a/netwerk/cookie/CookieService.cpp b/netwerk/cookie/CookieService.cpp index 78698d44a0..8457a99249 100644 --- a/netwerk/cookie/CookieService.cpp +++ b/netwerk/cookie/CookieService.cpp @@ -1624,21 +1624,6 @@ bool CookieService::GetTokenValue(nsACString::const_char_iterator& aIter, // if on terminator, increment past & return true to process new cookie if (isterminator(*aIter)) { ++aIter; - while (aIter != aEndIter && isvalueseparator(*aIter)) { - ++aIter; - } - nsACString::const_char_iterator end = aIter - 1; - if (!isterminator(*end)) { - // The cookie isn't valid because we have multiple terminators or - // a terminator followed by a value separator. Add those invalid - // characters to the cookie string or value so it will be rejected. - if (aEqualsFound) { - aTokenString.Rebind(start, end); - } else { - aTokenValue.Rebind(start, end); - } - return false; - } return true; } // fall-through: aIter is on ';', increment and return false -- cgit v1.2.3