mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Merge pull request #4287 from steinwaywhw/patch-1
Fix frozen email string problem in mbox.rb
This commit is contained in:
commit
be76a9808a
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ class ImportScripts::Mbox < ImportScripts::Base
|
||||||
if mail.from.present?
|
if mail.from.present?
|
||||||
from_email = mail.from.dup
|
from_email = mail.from.dup
|
||||||
if from_email.kind_of?(Array)
|
if from_email.kind_of?(Array)
|
||||||
from_email = from_email.first
|
from_email = from_email.first.dup
|
||||||
end
|
end
|
||||||
|
|
||||||
from_email.gsub!(/ at /, '@')
|
from_email.gsub!(/ at /, '@')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue