mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix quoting regexp encoding in ActionMailer
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
committed by
José Valim
parent
9dae645c5f
commit
cd5ec4744d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user