mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 18:51:08 +08:00
escaping the subject isn't needed in the mbox importer
This commit is contained in:
@ -118,7 +118,7 @@ module ImportScripts::Mbox
|
|||||||
def map_first_post(row)
|
def map_first_post(row)
|
||||||
mapped = map_post(row)
|
mapped = map_post(row)
|
||||||
mapped[:category] = category_id_from_imported_category_id(row['category'])
|
mapped[:category] = category_id_from_imported_category_id(row['category'])
|
||||||
mapped[:title] = CGI.escapeHTML(row['subject'].strip)[0...255]
|
mapped[:title] = row['subject'].strip[0...255]
|
||||||
mapped
|
mapped
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user