summaryrefslogtreecommitdiffstats
path: root/netwerk/cookie
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-20 04:01:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-20 04:01:55 +0000
commit0409b8aa646ea5192cd91976a89f71024129344c (patch)
treef95ba411e9e8b81d511c448d9fc010a876e8b481 /netwerk/cookie
parentAdding upstream version 127.0. (diff)
downloadfirefox-0409b8aa646ea5192cd91976a89f71024129344c.tar.xz
firefox-0409b8aa646ea5192cd91976a89f71024129344c.zip
Adding upstream version 127.0.1.upstream/127.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'netwerk/cookie')
-rw-r--r--netwerk/cookie/CookieService.cpp15
1 files changed, 0 insertions, 15 deletions
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