Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick Derichs <pderichs@gitlab.com>2019-11-22 16:00:39 +0300
committerPatrick Derichs <pderichs@gitlab.com>2019-11-22 16:40:44 +0300
commit0cc8e0210a081bd7db0bc0ef2b1e56cf3f55ae95 (patch)
tree0929dfb2a63b3807e6f8b179167015ef77ef0261 /lib
parent4d477238500c347c6553d335d920bedfc5a46869 (diff)
Fix invalid byte sequence
Diffstat (limited to 'lib')
-rw-r--r--lib/banzai/filter/relative_link_filter.rb2
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)