Fix quoting regexp encoding in ActionMailer

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Pavel Golubeff
2010-03-03 09:54:52 +01:00
committed by José Valim
parent 9dae645c5f
commit cd5ec4744d

View File

@@ -22,7 +22,7 @@ module ActionMailer
# A quick-and-dirty regexp for determining whether a string contains any
# characters that need escaping.
if !defined?(CHARS_NEEDING_QUOTING)
CHARS_NEEDING_QUOTING = /[\000-\011\013\014\016-\037\177-\377]/
CHARS_NEEDING_QUOTING = Regexp.new('[\000-\011\013\014\016-\037\177-\377]', nil, 'n')
end
# Quote the given text if it contains any "illegal" characters