From 47b49222cb2aac5f17872bcda04930487ff68f5d Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 17 Mar 2017 06:30:44 +0100 Subject: [PATCH] Fixed typo. --- app/models/ticket/article.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/ticket/article.rb b/app/models/ticket/article.rb index cac6521b3..e9dc0dbdc 100644 --- a/app/models/ticket/article.rb +++ b/app/models/ticket/article.rb @@ -270,8 +270,8 @@ returns } attributes['attachments'].push item } - if articles['body'] && articles['content_type'] =~ %r{text/html}i - articles['body'] = HtmlSanitizer.dynamic_image_size(articles['body']) + if attributes['body'] && attributes['content_type'] =~ %r{text/html}i + attributes['body'] = HtmlSanitizer.dynamic_image_size(attributes['body']) end Ticket::Article.insert_urls(attributes) end