History

Bypass URI path check when decoding path

Thibaut Courouble committed 10 years ago

Commit f9470df1 parent 6c9fc461 file · +1 −1Browse files

Unified · Split

lib/docs/filters/core/normalize_paths.rb+1−1
@@ -26,7 +26,7 @@ module Docs · 25 unmodified lines
26 26
27 def normalize_href(href)27 def normalize_href(href)
28 url = URL.parse(href)28 url = URL.parse(href)
29 url.path = normalize_path(url.path)29 url.send(:set_path, normalize_path(url.path))
30 url30 url
31 rescue URI::InvalidURIError31 rescue URI::InvalidURIError
32 href32 href