From b8863329045c523619b2f7cfdb6b1a0e6f3f4bd7 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Tue, 13 Jun 2017 18:56:00 +0200 Subject: [PATCH] Render all possible inline textile images Previously, Redmine would bail out completely if it found an image with an invalid scheme. This would result in none of the images in a text to be transformed into actual img tags. What is actually intended here however is to only refrain from rendering the single invalid image and to still render all the other valid ones. --- lib/redmine/wiki_formatting/textile/redcloth3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/wiki_formatting/textile/redcloth3.rb b/lib/redmine/wiki_formatting/textile/redcloth3.rb index d0bd217d3..7ed29bbd8 100644 --- a/lib/redmine/wiki_formatting/textile/redcloth3.rb +++ b/lib/redmine/wiki_formatting/textile/redcloth3.rb @@ -969,7 +969,7 @@ class RedCloth3 < String href, alt_title = check_refs( href ) if href url, url_title = check_refs( url ) - return m unless uri_with_safe_scheme?(url) + next m unless uri_with_safe_scheme?(url) out = '' out << "" if href -- 2.13.0