1
0
Эх сурвалжийг харах

Bypass URI path check when decoding path

Thibaut Courouble 9 жил өмнө
parent
commit
f9470dffe9

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

@@ -26,7 +26,7 @@ module Docs
 
     def normalize_href(href)
       url = URL.parse(href)
-      url.path = normalize_path(url.path)
+      url.send(:set_path, normalize_path(url.path))
       url
     rescue URI::InvalidURIError
       href