mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Decode URL encoded preference cookie when parsing
This commit is contained in:
parent
065c104f27
commit
0a87ba6930
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ end
|
|||
|
||||
before_all do |env|
|
||||
preferences = begin
|
||||
Preferences.from_json(env.request.cookies["PREFS"]?.try &.value || "{}")
|
||||
Preferences.from_json(URI.decode_www_form(env.request.cookies["PREFS"]?.try &.value || "{}"))
|
||||
rescue
|
||||
Preferences.from_json("{}")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue