Klaus Demo nginx / fbe9759
Mail: don't emit separator in capability lists for APOP. Notably, this fixes CAPA and AUTH output. The bug had appeared in nginx 1.11.6 (73b451d304c0). Sergey Kandaurov 5 years ago
1 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
184184 m <= NGX_MAIL_AUTH_EXTERNAL_ENABLED;
185185 m <<= 1, i++)
186186 {
187 if (ngx_mail_pop3_auth_methods_names[i].len == 0) {
188 continue;
189 }
190
187191 if (m & conf->auth_methods) {
188192 size += 1 + ngx_mail_pop3_auth_methods_names[i].len;
189193 }
211215 m <= NGX_MAIL_AUTH_EXTERNAL_ENABLED;
212216 m <<= 1, i++)
213217 {
218 if (ngx_mail_pop3_auth_methods_names[i].len == 0) {
219 continue;
220 }
221
214222 if (m & conf->auth_methods) {
215223 *p++ = ' ';
216224 p = ngx_cpymem(p, ngx_mail_pop3_auth_methods_names[i].data,
247255 m <= NGX_MAIL_AUTH_EXTERNAL_ENABLED;
248256 m <<= 1, i++)
249257 {
258 if (ngx_mail_pop3_auth_methods_names[i].len == 0) {
259 continue;
260 }
261
250262 if (m & conf->auth_methods) {
251263 size += ngx_mail_pop3_auth_methods_names[i].len
252264 + sizeof(CRLF) - 1;
268280 m <= NGX_MAIL_AUTH_EXTERNAL_ENABLED;
269281 m <<= 1, i++)
270282 {
283 if (ngx_mail_pop3_auth_methods_names[i].len == 0) {
284 continue;
285 }
286
271287 if (m & conf->auth_methods) {
272288 p = ngx_cpymem(p, ngx_mail_pop3_auth_methods_names[i].data,
273289 ngx_mail_pop3_auth_methods_names[i].len);