comparison src/mail/ngx_mail_parse.c @ 1405:fdd064faf26a

escape " ", "%", and %00-%1F in login and password
author Igor Sysoev <igor@sysoev.ru>
date Mon, 20 Aug 2007 09:50:53 +0000
parents c4b2c893989d
children 59e1caf2be94 ed9cd1702f7a
comparison
equal deleted inserted replaced
1404:df2592d32e49 1405:fdd064faf26a
432 goto invalid; 432 goto invalid;
433 } 433 }
434 break; 434 break;
435 435
436 case sw_argument: 436 case sw_argument:
437 if (ch == ' ' && s->quoted) {
438 break;
439 }
440
437 switch (ch) { 441 switch (ch) {
438 case '"': 442 case '"':
439 if (!s->quoted) { 443 if (!s->quoted) {
440 break; 444 break;
441 } 445 }