diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-03-31 05:31:47 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-03-31 05:31:47 +0000 |
commit | a8ac5300e657f523fd27c54283b3fd27fb1afdd8 (patch) | |
tree | ac5b8a76de17813a3bc5c5d677c0497a3674f1d8 /actionmailer/lib/action_mailer/vendor/tmail-1.2.2/tmail/utils.rb | |
parent | af74077544302d8d6a52ea2ec674da3ea53a29c5 (diff) | |
download | rails-a8ac5300e657f523fd27c54283b3fd27fb1afdd8.tar.gz rails-a8ac5300e657f523fd27c54283b3fd27fb1afdd8.tar.bz2 rails-a8ac5300e657f523fd27c54283b3fd27fb1afdd8.zip |
Bump bundled tmail to r242
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer/lib/action_mailer/vendor/tmail-1.2.2/tmail/utils.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/vendor/tmail-1.2.2/tmail/utils.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/actionmailer/lib/action_mailer/vendor/tmail-1.2.2/tmail/utils.rb b/actionmailer/lib/action_mailer/vendor/tmail-1.2.2/tmail/utils.rb index b18451d017..9a3afe8985 100644 --- a/actionmailer/lib/action_mailer/vendor/tmail-1.2.2/tmail/utils.rb +++ b/actionmailer/lib/action_mailer/vendor/tmail-1.2.2/tmail/utils.rb @@ -109,15 +109,15 @@ module TMail # It also provides methods you can call to determine if a string is safe module TextUtils - aspecial = '()<>[]:;.\\,"' - tspecial = '()<>[];:\\,"/?=' - lwsp = " \t\r\n" - control = '\x00-\x1f\x7f-\xff' + aspecial = %Q|()<>[]:;.\\,"| + tspecial = %Q|()<>[];:\\,"/?=| + lwsp = %Q| \t\r\n| + control = %Q|\x00-\x1f\x7f-\xff| + CONTROL_CHAR = /[#{control}]/n ATOM_UNSAFE = /[#{Regexp.quote aspecial}#{control}#{lwsp}]/n PHRASE_UNSAFE = /[#{Regexp.quote aspecial}#{control}]/n TOKEN_UNSAFE = /[#{Regexp.quote tspecial}#{control}#{lwsp}]/n - CONTROL_CHAR = /[#{control}]/n # Returns true if the string supplied is free from characters not allowed as an ATOM def atom_safe?( str ) |