aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-03-14 04:47:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-03-14 04:47:00 +0800
commit521ba6b4bf30269f16b511084db0f85009dbef95 (patch)
tree7d39dab40884d73599e7e106795bda1c64ce9604 /camel/providers
parent4cd405034c0e07d8c15b01f29bcdcc98f78b8bbe (diff)
downloadgsoc2013-evolution-521ba6b4bf30269f16b511084db0f85009dbef95.tar
gsoc2013-evolution-521ba6b4bf30269f16b511084db0f85009dbef95.tar.gz
gsoc2013-evolution-521ba6b4bf30269f16b511084db0f85009dbef95.tar.bz2
gsoc2013-evolution-521ba6b4bf30269f16b511084db0f85009dbef95.tar.lz
gsoc2013-evolution-521ba6b4bf30269f16b511084db0f85009dbef95.tar.xz
gsoc2013-evolution-521ba6b4bf30269f16b511084db0f85009dbef95.tar.zst
gsoc2013-evolution-521ba6b4bf30269f16b511084db0f85009dbef95.zip
Quote the USER and PASS arguments since some people have spaces in their
2002-03-13 Jeffrey Stedfast <fejj@ximian.com> * providers/pop3/camel-pop3-store.c (pop3_try_authenticate): Quote the USER and PASS arguments since some people have spaces in their user-names and/or passwords. svn path=/trunk/; revision=16144
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/pop3/camel-pop3-store.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/providers/pop3/camel-pop3-store.c b/camel/providers/pop3/camel-pop3-store.c
index e441531c05..37a33fec45 100644
--- a/camel/providers/pop3/camel-pop3-store.c
+++ b/camel/providers/pop3/camel-pop3-store.c
@@ -469,8 +469,8 @@ pop3_try_authenticate (CamelService *service, const char *errmsg,
if (!service->url->authmech) {
/* pop engine will take care of pipelining ability */
- pcu = camel_pop3_engine_command_new(store->engine, 0, NULL, NULL, "USER %s\r\n", service->url->user);
- pcp = camel_pop3_engine_command_new(store->engine, 0, NULL, NULL, "PASS %s\r\n", service->url->passwd);
+ pcu = camel_pop3_engine_command_new(store->engine, 0, NULL, NULL, "USER \"%s\"\r\n", service->url->user);
+ pcp = camel_pop3_engine_command_new(store->engine, 0, NULL, NULL, "PASS \"%s\"\r\n", service->url->passwd);
} else if (strcmp(service->url->authmech, "+APOP") == 0 && store->engine->apop) {
char *secret, md5asc[33], *d;
unsigned char md5sum[16], *s;