From 9dc4f8a1aa7ac183b2eadf73a5f0be35931e8ce3 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 4 Mar 2020 13:03:14 -0500 Subject: [PATCH] Escape item titles in search page --- src/invidious/views/components/item.ecr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/invidious/views/components/item.ecr b/src/invidious/views/components/item.ecr index f7b9cce6..9669aaeb 100644 --- a/src/invidious/views/components/item.ecr +++ b/src/invidious/views/components/item.ecr @@ -44,7 +44,7 @@ <% end %> <% end %> -

<%= item.title %>

+

<%= HTML.escape(item.title) %>

@@ -76,7 +76,7 @@ <% end %> <% end %> -

<%= item.title %>

+

<%= HTML.escape(item.title) %>

@@ -137,7 +137,7 @@ <% end %> -

<%= item.title %>

+

<%= HTML.escape(item.title) %>

<%= item.author %>