浏览代码

Core normalize_paths filter: fix URI.unescape deprecation

Enoc 4 年之前
父节点
当前提交
44b1416a16
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/docs/filters/core/normalize_paths.rb

+ 1 - 1
lib/docs/filters/core/normalize_paths.rb

@@ -38,7 +38,7 @@ module Docs
       path = path.downcase
 
       if context[:decode_and_clean_paths]
-        path = URI.unescape(path)
+        path = CGI.unescape(path)
         path = clean_path(path)
       end