1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Chomp html suffix literally

Unescaped dot does not mean a suffix.
This commit is contained in:
Nobuyoshi Nakada 2019-07-29 22:51:01 +09:00
parent 968c7b4398
commit bef398eb87
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -145,7 +145,7 @@ class RDoc::Servlet < WEBrick::HTTPServlet::AbstractServlet
# +generator+ is used to create the page.
def documentation_page store, generator, path, req, res
text_name = path.sub /.html$/, ''
text_name = path.chomp '.html'
name = text_name.gsub '/', '::'
if klass = store.find_class_or_module(name) then