Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove duplicated line feed from regexp

  • Loading branch information...
commit ffa7db307b5c8378060c2071e112478bc2fbc6b5 1 parent aba2ed7
@mikel authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/mail/core_extensions/shell_escape.rb
View
2  lib/mail/core_extensions/shell_escape.rb
@@ -30,7 +30,7 @@ def escape_for_shell(str)
# Process as a single byte sequence because not all shell
# implementations are multibyte aware.
- str.gsub!(/([^A-Za-z0-9_\s\+\-.,:\/@\n])/n, "\\\\\\1")
+ str.gsub!(/([^A-Za-z0-9_\s\+\-.,:\/@])/n, "\\\\\\1")
# A LF cannot be escaped with a backslash because a backslash + LF
# combo is regarded as line continuation and simply ignored.
Please sign in to comment.
Something went wrong with that request. Please try again.