From fe42b189c95e14f2892aa0a21e4dbc25382bb652 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Wed, 25 May 2016 12:41:32 -0400 Subject: [PATCH] FIX: vanilla_mysql importer removes everything between the first and last img tags in a post --- script/import_scripts/vanilla_mysql.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/import_scripts/vanilla_mysql.rb b/script/import_scripts/vanilla_mysql.rb index aba0dd9423..9bf33fd637 100644 --- a/script/import_scripts/vanilla_mysql.rb +++ b/script/import_scripts/vanilla_mysql.rb @@ -320,7 +320,9 @@ class ImportScripts::VanillaSQL < ImportScripts::Base raw.gsub!(/\[attach[^\]]*\]\d+\[\/attach\]/i, "") # sanitize img tags - raw.gsub!(/\/i) {"\n\n"} + # This regexp removes everything between the first and last img tag. The .* is too much. + # If it's needed, it needs to be fixed. + # raw.gsub!(/\/i) {"\n\n"} raw end