diff options
author | Pavel Golubeff <golubeff@MacBook-Pro.local> | 2010-03-03 09:54:52 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-03-03 10:12:42 +0100 |
commit | cd5ec4744dec9f8a443d1318bfafc9cf02752819 (patch) | |
tree | 1becff4e5ba408843b4e5446bedf81a8671ee790 /actionmailer/lib/action_mailer | |
parent | 9dae645c5f8a2aaa70b19e05daf9a7d270facb72 (diff) | |
download | rails-cd5ec4744dec9f8a443d1318bfafc9cf02752819.tar.gz rails-cd5ec4744dec9f8a443d1318bfafc9cf02752819.tar.bz2 rails-cd5ec4744dec9f8a443d1318bfafc9cf02752819.zip |
Fix quoting regexp encoding in ActionMailer
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r-- | actionmailer/lib/action_mailer/quoting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/quoting.rb b/actionmailer/lib/action_mailer/quoting.rb index 70f636bf69..2b55c0f0ab 100644 --- a/actionmailer/lib/action_mailer/quoting.rb +++ b/actionmailer/lib/action_mailer/quoting.rb @@ -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 |