From e3f4f8858d0b9c4440b465a0f7ffac94ee454e03 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Wed, 31 Aug 2022 09:50:37 +0200 Subject: [PATCH] Fix rentgen being fooled with a "=" in cookie value (e.g. the NID cookie on google.com) --- util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.ts b/util.ts index 516c11d..e32dd23 100644 --- a/util.ts +++ b/util.ts @@ -77,7 +77,7 @@ export function useEmitter( export function parseCookie(cookie: string): Record { return cookie .split(';') - .map((l) => l.split('=')) + .map((l) => [l.slice(0, l.indexOf('=')), l.slice(l.indexOf('=') + 1)]) .reduce( (acc, [key, value]) => ({ ...acc,