shugo
* lib/net/imap.rb (ResponseParser#address): bug fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1222537eb0
commit
5f4d324d3b
@ -1512,10 +1512,15 @@ module Net
|
|||||||
if @str.index(ADDRESS_REGEXP, @pos)
|
if @str.index(ADDRESS_REGEXP, @pos)
|
||||||
# address does not include literal.
|
# address does not include literal.
|
||||||
@pos = $~.end(0)
|
@pos = $~.end(0)
|
||||||
name = $1 ? $1.gsub(/\\(["\\])/n, "\\1") : nil
|
name = $1
|
||||||
route = $2 ? $2.gsub(/\\(["\\])/n, "\\1") : nil
|
route = $2
|
||||||
mailbox = $3 ? $3.gsub(/\\(["\\])/n, "\\1") : nil
|
mailbox = $3
|
||||||
host = $4 ? $4.gsub(/\\(["\\])/n, "\\1") : nil
|
host = $4
|
||||||
|
for s in [name, route, mailbox, host]
|
||||||
|
if s
|
||||||
|
s.gsub!(/\\(["\\])/n, "\\1")
|
||||||
|
end
|
||||||
|
end
|
||||||
else
|
else
|
||||||
name = nstring
|
name = nstring
|
||||||
match(T_SPACE)
|
match(T_SPACE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user