mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-21 21:17:20 +00:00
Search: Fix 'youtu.be' URLs in sanitizer (#4894)
Use the proper URL argument when transforming youtu.be URLs to their youtube.com equivalents. Thanks to Tuhgy on the fediverse for reporting this! No related issue
This commit is contained in:
commit
d5f5490aee
@ -111,7 +111,7 @@ module UrlSanitizer
|
||||
new_uri.path = "/watch"
|
||||
|
||||
new_params = copy_params(unsafe_uri.query_params, :watch)
|
||||
new_params["id"] = breadcrumbs[0]
|
||||
new_params["v"] = breadcrumbs[0]
|
||||
|
||||
new_uri.query_params = new_params
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user