From 2659ffc973475999e75816c3472889a02d501b74 Mon Sep 17 00:00:00 2001 From: Rei Date: Sun, 17 Jan 2016 16:19:31 +0800 Subject: [PATCH] Move sanitize to last call --- 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 32217df45d..448befa710 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -8,7 +8,7 @@ module ApplicationHelper def sanitize_markdown(body) # TODO: This method slow, 3.5ms per call in topic body - sanitize sanitize(body), tags: ALLOW_TAGS, attributes: ALLOW_ATTRIBUTES + sanitize sanitize(body, tags: ALLOW_TAGS, attributes: ALLOW_ATTRIBUTES) end def notice_message