Fix rentgen being fooled with a "=" in cookie value (e.g. the NID cookie on google.com)
This commit is contained in:
parent
e3d6e6b83c
commit
e3f4f8858d
2
util.ts
2
util.ts
|
@ -77,7 +77,7 @@ export function useEmitter(
|
|||
export function parseCookie(cookie: string): Record<string, string> {
|
||||
return cookie
|
||||
.split(';')
|
||||
.map((l) => l.split('='))
|
||||
.map((l) => [l.slice(0, l.indexOf('=')), l.slice(l.indexOf('=') + 1)])
|
||||
.reduce(
|
||||
(acc, [key, value]) => ({
|
||||
...acc,
|
||||
|
|
Loading…
Reference in New Issue
Block a user