public
Description: Koz's rails git-svn clone
Homepage: http://www.rubyonrails.org
Clone URL: git://github.com/NZKoz/koz-rails.git
Ruby 1.9 compat: ascii encoding for quoted-printable regexps


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9217 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
bitsweat (author)
Thu Apr 03 10:27:55 -0700 2008
commit  a9ba9947ffcec594d4ff19e7a7f6481f98fe581b
tree    b421fb6e74d1402377eafc824b719bb56b9c44c0
parent  639b59e12d2c18b48062fac84112322e0222dffb
...
24
25
26
 
 
27
28
29
...
24
25
26
27
28
29
30
31
0
@@ -24,6 +24,8 @@ module ActionMailer
0
 
0
     # Quote the given text if it contains any "illegal" characters
0
     def quote_if_necessary(text, charset)
0
+ text = text.dup.force_encoding(Encoding::ASCII_8BIT) if text.respond_to?(:force_encoding)
0
+
0
       (text =~ CHARS_NEEDING_QUOTING) ?
0
         quoted_printable(text, charset) :
0
         text

Comments

    No one has commented yet.