FIX: clean URLs in SMF1 importer

This commit is contained in:
Régis Hanol 2018-07-19 13:17:43 +02:00
parent 63e5349209
commit e8e9b5cea4
1 changed files with 3 additions and 0 deletions

View File

@ -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