From 39909d8c18ede7bb94bbcd0ad00d41b2f545528b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 7 Sep 2021 23:52:13 +0900 Subject: [PATCH] [ruby/rdoc] Escape search results https://hackerone.com/reports/1321358 https://github.com/ruby/rdoc/commit/2ebf8fd510 --- .../generator/template/darkfish/_head.rhtml | 20 +++++++++---------- .../template/darkfish/js/darkfish.js | 2 +- .../generator/template/darkfish/js/search.js | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/rdoc/generator/template/darkfish/_head.rhtml b/lib/rdoc/generator/template/darkfish/_head.rhtml index 4f331245c3..d5aed3e9ef 100644 --- a/lib/rdoc/generator/template/darkfish/_head.rhtml +++ b/lib/rdoc/generator/template/darkfish/_head.rhtml @@ -3,18 +3,18 @@ <%= h @title %> - - - - - + + + + + - - + + <%- @options.template_stylesheets.each do |stylesheet| -%> - + <%- end -%> diff --git a/lib/rdoc/generator/template/darkfish/js/darkfish.js b/lib/rdoc/generator/template/darkfish/js/darkfish.js index 111bbf8eb9..d0c9467751 100644 --- a/lib/rdoc/generator/template/darkfish/js/darkfish.js +++ b/lib/rdoc/generator/template/darkfish/js/darkfish.js @@ -54,7 +54,7 @@ function hookSearch() { var html = ''; // TODO add relative path to