Skip to content

Commit 31b6ed9

Browse files
committed
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.
1 parent df8839d commit 31b6ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/invidious/frontend/watch_page.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module Invidious::Frontend::WatchPage
3232
return String.build(4000) do |str|
3333
str << "<form"
3434
str << " class=\"pure-form pure-form-stacked\""
35-
str << " action='#{url}'"
35+
str << " action='" << HTML.escape(url) << "'"
3636
str << " method='post'"
3737
str << " rel='noopener'"
3838
str << " target='_blank'>"

0 commit comments

Comments
 (0)