mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Rexexp.escape LISTNAME
This commit is contained in:
parent
99860910fc
commit
84de8e92e1
@ -259,7 +259,7 @@ class ImportScripts::Mbox < ImportScripts::Base
|
|||||||
def clean_title(title)
|
def clean_title(title)
|
||||||
title ||= ""
|
title ||= ""
|
||||||
#Strip mailing list name from subject
|
#Strip mailing list name from subject
|
||||||
title = title.gsub(/\[#{LIST_NAME}\]/, '').strip
|
title = title.gsub(/\[#{Regexp.escape(LIST_NAME)}\]/, '').strip
|
||||||
|
|
||||||
original_length = title.length
|
original_length = title.length
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user