Skip to content

Commit

Permalink
fixup! fix: fix cookie parsing to allow invalid uri encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery committed Aug 21, 2023
1 parent d7307f4 commit 2578d22
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/qwik-city/middleware/request-handler/cookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ const createSetCookieValue = (cookieName: string, cookieValue: string, options:
};

function tryDecodeUriComponent(str: string) {
if (str.indexOf('%') === -1) {
return str;
}
try {
return decodeURIComponent(str);
} catch {
Expand Down

0 comments on commit 2578d22

Please sign in to comment.