Bypass URI path check when decoding path

pull/382/head
Thibaut Courouble 9 years ago
parent 6c9fc464c2
commit f9470dffe9

@ -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

Loading…
Cancel
Save