File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
require 'rdoc'
3
+ require 'erb'
3
4
require 'time'
4
5
require 'json'
5
6
require 'webrick'
@@ -427,14 +428,14 @@ def store_for source_name
427
428
end
428
429
429
430
raise WEBrick ::HTTPStatus ::NotFound ,
430
- "Could not find gem \" #{ source_name } \" . Are you sure you installed it?" unless ri_dir
431
+ "Could not find gem \" #{ ERB :: Util . html_escape ( source_name ) } \" . Are you sure you installed it?" unless ri_dir
431
432
432
433
store = RDoc ::Store . new ri_dir , type
433
434
434
435
return store if File . exist? store . cache_path
435
436
436
437
raise WEBrick ::HTTPStatus ::NotFound ,
437
- "Could not find documentation for \" #{ source_name } \" . Please run `gem rdoc --ri gem_name`"
438
+ "Could not find documentation for \" #{ ERB :: Util . html_escape ( source_name ) } \" . Please run `gem rdoc --ri gem_name`"
438
439
439
440
end
440
441
end
You can’t perform that action at this time.
0 commit comments