1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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