From 5fb447a676ca8c99b0704ebcc8c77c5150cb2010 Mon Sep 17 00:00:00 2001 From: "BOYA,CHIU" Date: Thu, 5 Aug 2021 19:14:14 +0800 Subject: [PATCH] fix error --- app/helpers/tickets_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/tickets_helper.rb b/app/helpers/tickets_helper.rb index 93babcf..1d4670d 100644 --- a/app/helpers/tickets_helper.rb +++ b/app/helpers/tickets_helper.rb @@ -5,9 +5,9 @@ module TicketsHelper html = html.gsub("src=\"/uploads/","src=\"http://#{site.site_domain}/uploads/") temp_html = ActionView::Base.full_sanitizer.sanitize(html) urls = URI.extract(temp_html,["http","https"]) - urls.each do |url| - html = html.sub(url, "#{url}") - end + #urls.each do |url| + # html = html.sub(url, "#{url}") + #end end return html end