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
2626
2727 def normalize_href(href)
2828 url = URL.parse(href)
29− url.path = normalize_path(url.path)
29+ url.send(:set_path, normalize_path(url.path))
3030 url
3131 rescue URI::InvalidURIError
3232 href