We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d334286 commit de676ebCopy full SHA for de676eb
src/entries/Background/db.ts
@@ -448,8 +448,11 @@ export async function getCookiesByHost(linkOrHost: string) {
448
for (const header of filteredRequest.requestHeaders) {
449
if (header.name.toLowerCase() === 'cookie') {
450
header.value?.split(';').forEach((cookie) => {
451
- const [name, value] = cookie.split('=');
452
- ret[name.trim()] = value.trim();
+ const i = cookie.indexOf('=');
+ if (i !== -1) {
453
+ const name = cookie.slice(0, i).trim();
454
+ ret[name] = cookie.slice(i + 1).trim();
455
+ }
456
});
457
}
458
0 commit comments