From 1843b53fbdfd7fd7b864faf37fdc6836c6fc5ce5 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 18 Nov 2014 13:10:44 -0200 Subject: [PATCH] filter_html: fix crash on nil input --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 6206023..6b71939 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1377,7 +1377,7 @@ module ApplicationHelper # are old things that do not support it we are keeping this hot spot. html = @plugins.pipeline(:parse_content, html, source).first end - html.html_safe + html && html.html_safe end def convert_macro(html, source) -- libgit2 0.21.2