diff src/mail/ngx_mail_parse.c @ 1512:b19709ee1f52 stable-0.5

r1406 merge: escape " ", "%", and %00-%1F in login and password
author Igor Sysoev <igor@sysoev.ru>
date Sat, 22 Sep 2007 19:15:01 +0000
parents 4fd0907c968e
children 59e1caf2be94 ed9cd1702f7a
line wrap: on
line diff
--- a/src/mail/ngx_mail_parse.c
+++ b/src/mail/ngx_mail_parse.c
@@ -434,6 +434,10 @@ ngx_int_t ngx_imap_parse_command(ngx_mai
             break;
 
         case sw_argument:
+            if (ch == ' ' && s->quoted) {
+                break;
+            }
+
             switch (ch) {
             case '"':
                 if (!s->quoted) {