From 84de8e92e1da71cd2ff517362eaa1c541649c69b Mon Sep 17 00:00:00 2001 From: Jay Pfaffman Date: Wed, 28 Sep 2016 08:40:31 -0700 Subject: [PATCH] Rexexp.escape LISTNAME --- script/import_scripts/mbox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/import_scripts/mbox.rb b/script/import_scripts/mbox.rb index e203006acd0..7d1a18b8b90 100755 --- a/script/import_scripts/mbox.rb +++ b/script/import_scripts/mbox.rb @@ -259,7 +259,7 @@ class ImportScripts::Mbox < ImportScripts::Base def clean_title(title) title ||= "" #Strip mailing list name from subject - title = title.gsub(/\[#{LIST_NAME}\]/, '').strip + title = title.gsub(/\[#{Regexp.escape(LIST_NAME)}\]/, '').strip original_length = title.length