diff options
author | Patrick Derichs <pderichs@gitlab.com> | 2019-11-22 15:56:24 +0300 |
---|---|---|
committer | Patrick Derichs <pderichs@gitlab.com> | 2019-11-22 16:39:54 +0300 |
commit | 5bdc90c2799db3fdabe8cd95c7a194c3ef825873 (patch) | |
tree | d53a4c0b3c7869850b114ddd4bbbe2b2b8b02489 /lib | |
parent | 1f0ab8978eff64f520348952fdbdd6dc5e9e9161 (diff) |
Fix invalid byte sequence
Diffstat (limited to 'lib')
-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) |