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:
parent
9dae645c5f
commit
cd5ec4744d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue