pages/watch: HTML escape '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.
This commit is contained in:
Samantaz Fox
2025-06-26 19:15:12 +00:00
committed by Émilien (perso)
parent cc7cb94095
commit ffd9f4b112

View File

@@ -36,7 +36,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='" << HTML.escape(url) << "'"
str << " method='post'"
str << " rel='noopener noreferrer'"
str << " target='_blank'>"