diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-13 22:02:21 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-10-07 12:09:23 +0900 |
commit | 8d0b2162a09183eb3d58a5a1d824b4daf16bf3c8 (patch) | |
tree | 858d8f865f5c88387df89db57268cfc12cbf5e07 /lib/rdoc/generator | |
parent | 586e18b94645b2d3181720d311fcd72b4bb2ca88 (diff) | |
download | ruby-8d0b2162a09183eb3d58a5a1d824b4daf16bf3c8.tar.gz |
[ruby/rdoc] Escape main title
https://hackerone.com/reports/1187156
https://github.com/ruby/rdoc/commit/5dedb5741d
Diffstat (limited to 'lib/rdoc/generator')
-rw-r--r-- | lib/rdoc/generator/template/darkfish/index.rhtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/generator/template/darkfish/index.rhtml b/lib/rdoc/generator/template/darkfish/index.rhtml index 13fa3dcc7f..423e225b68 100644 --- a/lib/rdoc/generator/template/darkfish/index.rhtml +++ b/lib/rdoc/generator/template/darkfish/index.rhtml @@ -17,6 +17,6 @@ main_page = @files.find { |f| f.full_name == @options.main_page } then %> <%= main_page.description %> <%- else -%> -<p>This is the API documentation for <%= @title %>. +<p>This is the API documentation for <%= h @title %>. <%- end -%> </main> |