Commit 1843b53fbdfd7fd7b864faf37fdc6836c6fc5ce5
1 parent
aa19a891
Exists in
master
and in
27 other branches
filter_html: fix crash on nil input
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/helpers/application_helper.rb
... | ... | @@ -1377,7 +1377,7 @@ module ApplicationHelper |
1377 | 1377 | # are old things that do not support it we are keeping this hot spot. |
1378 | 1378 | html = @plugins.pipeline(:parse_content, html, source).first |
1379 | 1379 | end |
1380 | - html.html_safe | |
1380 | + html && html.html_safe | |
1381 | 1381 | end |
1382 | 1382 | |
1383 | 1383 | def convert_macro(html, source) | ... | ... |