Rexexp.escape LISTNAME

This commit is contained in:
Jay Pfaffman 2016-09-28 08:40:31 -07:00
parent 99860910fc
commit 84de8e92e1

View File

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