Compare commits

..

1 Commits

Author SHA1 Message Date
Samantaz Fox
9be9ee4099 pages/watch: URL encode 'action' in download widget
Caught in the review of PR 5224, but forgot to click on "send review" in time. I realized that too late, after the PR was already merged.
2025-06-26 19:15:12 +00:00
2 changed files with 1 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ module Invidious::Frontend::WatchPage
return String.build(4000) do |str|
str << "<form"
str << " class=\"pure-form pure-form-stacked\""
str << " action='#{url}'"
str << " action='" << URI.encode_www_form(url) << "'"
str << " method='post'"
str << " rel='noopener'"
str << " target='_blank'>"

View File

@@ -42,7 +42,6 @@ module YoutubeAPI
TvHtml5
TvHtml5ScreenEmbed
TvSimply
end
# List of hard-coded values used by the different clients
@@ -179,11 +178,6 @@ module YoutubeAPI
version: "2.0",
screen: "EMBED",
},
ClientType::TvSimply => {
name: "TVHTML5_SIMPLY",
name_proto: "74",
version: "1.0",
},
}
####################################################################