From 3a6ffe127fc7316a26db8e5d1035b7e92c9f120c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 15 Dec 2019 03:08:02 +0000 Subject: replace URI.escape with CGI.escape The former is obsolete, apparently. --- lib/oldweb.rb | 6 +++--- 1 file 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(source) end -- cgit v1.2.3-24-ge0c7