diff options
author | Patrick Derichs <pderichs@gitlab.com> | 2019-11-22 13:23:19 +0300 |
---|---|---|
committer | Patrick Derichs <pderichs@gitlab.com> | 2019-11-22 16:37:43 +0300 |
commit | 53834c1874a6a26c0805046e1f580a233f170bd8 (patch) | |
tree | 0ed1b7a6ea7c333ae62392a89d15705c307af899 /lib/banzai | |
parent | 8e75748aabcbcea411f8bbc68936805bc2b5ff0c (diff) |
Fix invalid byte sequence
Diffstat (limited to 'lib/banzai')
-rw-r--r-- | lib/banzai/filter/relative_link_filter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/filter/relative_link_filter.rb b/lib/banzai/filter/relative_link_filter.rb index c7589e69262..583b0081319 100644 --- a/lib/banzai/filter/relative_link_filter.rb +++ b/lib/banzai/filter/relative_link_filter.rb @@ -172,7 +172,7 @@ module Banzai end def cleaned_file_path(uri) - Addressable::URI.unescape(uri.path).delete("\0").chomp("/") + Addressable::URI.unescape(uri.path).scrub.delete("\0").chomp("/") end def relative_file_path(uri) |