History

Bypass URI path check when decoding path

Thibaut Courouble committed 10 years ago

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

Showing the changes to lib/docs (1 of 1 file). Show all

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t