Permalink
Browse files

Fix quoting regexp encoding in ActionMailer

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 9dae645 commit cd5ec4744dec9f8a443d1318bfafc9cf02752819 Pavel Golubeff committed with josevalim Mar 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionmailer/lib/action_mailer/quoting.rb
@@ -22,7 +22,7 @@ def quoted_printable_encode(character)
# 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

0 comments on commit cd5ec47

Please sign in to comment.