summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-11-06 05:20:25 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-11-06 05:20:25 +0000
commit2fc66e2841618682bcfaa4e2fd44460916732f24 (patch)
tree07508a4fc8a6391b5c875a8ccc698f8156645a19 /lib/net
parentedaf0477a5b58460dab76a30288578f42b5db3c8 (diff)
* lib/net/imap.rb (getquota_response): use astring for mailbox
names. * lib/net/imap.rb (getacl_response): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/imap.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index 8445e2cda8..a74b3a7834 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -1980,8 +1980,7 @@ module Net
token = match(T_ATOM)
name = token.value.upcase
match(T_SPACE)
- token = match(T_ATOM)
- mailbox = token.value
+ mailbox = astring
match(T_SPACE)
match(T_LPAR)
match(T_ATOM)
@@ -2000,8 +1999,7 @@ module Net
token = match(T_ATOM)
name = token.value.upcase
match(T_SPACE)
- token = match(T_ATOM)
- mailbox = token.value
+ mailbox = astring
token = lookahead
if token.symbol == T_SPACE
shift_token