Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
Remove duplicated line feed from regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikel Lindsaar committed Mar 24, 2012
1 parent aba2ed7 commit ffa7db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mail/core_extensions/shell_escape.rb
Expand Up @@ -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.
Expand Down

0 comments on commit ffa7db3

Please sign in to comment.