Skip to content

Commit b7299b1

Browse files
committed
Stop treating quoted-string arguments as ascii-8bit.
Without UTF8=ACCEPT/IMAP4REV2, only ASCII is legal IMAP, and some servers do reject 8-bit data in quoted-string productions. With either UTF8=ACCEPT or IMAP4REV2 enabled, sending UTF-8 is legal. ASCII-8BIT makes no sense in either case (and causes a warning).
1 parent cf31764 commit b7299b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/imap/command_data.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def send_string_data(str, tag = nil)
7474
end
7575

7676
def send_quoted_string(str)
77-
put_string('"' + str.gsub(/["\\]/n, "\\\\\\&") + '"')
77+
put_string('"' + str.gsub(/["\\]/, "\\\\\\&") + '"')
7878
end
7979

8080
def send_literal(str, tag = nil)

0 commit comments

Comments
 (0)