diff --git a/script/import_scripts/smf1.rb b/script/import_scripts/smf1.rb index 4eeb65f061d..8b17ce6815e 100644 --- a/script/import_scripts/smf1.rb +++ b/script/import_scripts/smf1.rb @@ -640,6 +640,9 @@ class ImportScripts::Smf1 < ImportScripts::Base raw.gsub!(/Sent from .+? using \[url=.*?\].+?\[\/url\]/i, "") raw.gsub!(/Sent from .+? using .+?\z/i, "") + # clean URLs + raw.gsub!(/\[url=(.+?)\]\1\[\/url\]/i, '\1') + raw end