diff options
author | Eric Wong <e@80x24.org> | 2019-12-15 03:08:02 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-12-15 03:08:02 +0000 |
commit | 3a6ffe127fc7316a26db8e5d1035b7e92c9f120c (patch) | |
tree | b8fae6431951ee4fe0ea1f4b9056a1550651d70d | |
parent | 9910c591caa29efe08645ff5dec26566803daa7c (diff) | |
download | olddoc-3a6ffe127fc7316a26db8e5d1035b7e92c9f120c.tar.gz |
The former is obsolete, apparently.
-rw-r--r-- | lib/oldweb.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/oldweb.rb b/lib/oldweb.rb index 5b55019..74b4db1 100644 --- a/lib/oldweb.rb +++ b/lib/oldweb.rb @@ -5,7 +5,7 @@ require 'rdoc' require 'erb' require 'pathname' require 'yaml' -require 'uri' +require 'cgi' # oldweb is an \RDoc template and not intended as a programming API. # You may specify it as an \RDoc formatter: @@ -87,7 +87,7 @@ class Oldweb if cgit_url cgit_url += '/tree/%s' # path name - tag = @git_tag and cgit_url << "id=#{URI.escape(tag)}" + tag = @git_tag and cgit_url << "id=#{CGI.escape(tag)}" cgit_url << '#n%d' # lineno @old_vcs_url = cgit_url end @@ -297,7 +297,7 @@ class Oldweb def method_srclink(m) # :nodoc: url = @old_vcs_url or return "" line = m.line or return "" - path = URI.escape(m.file_name) + path = CGI.escape(m.file_name) %Q(<a href="#{url % [ path, line ]}">source</a>) end |