summaryrefslogtreecommitdiffstats
path: root/lib/net
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-28 05:17:13 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-28 05:17:13 +0000
commitc7be9ab7822eccf3144ca9a271f38c15770f1c40 (patch)
treeafacc8b48a6bb4da4f30bc534445f88300f1eda5 /lib/net
parentb6fadb7b5960851d82bf7d858cd4f6fff9f84163 (diff)
downloadruby-c7be9ab7822eccf3144ca9a271f38c15770f1c40.tar.gz
ruby-c7be9ab7822eccf3144ca9a271f38c15770f1c40.tar.xz
ruby-c7be9ab7822eccf3144ca9a271f38c15770f1c40.zip
* lib/net/pop.rb (auth): failed when account/password include "%". [ruby-talk:95933]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/pop.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/pop.rb b/lib/net/pop.rb
index 278b94939..2425f0369 100644
--- a/lib/net/pop.rb
+++ b/lib/net/pop.rb
@@ -748,8 +748,8 @@ module Net
def auth( account, password )
check_response_auth(critical {
- check_response_auth(get_response('USER ' + account))
- get_response('PASS ' + password)
+ check_response_auth(get_response('USER %s', account))
+ get_response('PASS %s', password)
})
end