(print_dir): Enclose empty filename in doublequotes.
Showing
1 changed file
with
4 additions
and
1 deletions
... | @@ -315,9 +315,12 @@ print_dir (const char *ref, const char *file, const char *delim) | ... | @@ -315,9 +315,12 @@ print_dir (const char *ref, const char *file, const char *delim) |
315 | strlen (ref) + strlen ((*ref) ? delim : "") + strlen (file)); | 315 | strlen (ref) + strlen ((*ref) ? delim : "") + strlen (file)); |
316 | util_send ("%s%s%s\r\n", ref, (*ref) ? delim : "", file); | 316 | util_send ("%s%s%s\r\n", ref, (*ref) ? delim : "", file); |
317 | } | 317 | } |
318 | else | 318 | else if (*file) |
319 | util_out (RESP_NONE, "LIST (\\NoSelect) \"%s\" %s%s%s", delim, | 319 | util_out (RESP_NONE, "LIST (\\NoSelect) \"%s\" %s%s%s", delim, |
320 | ref, (*ref) ? delim : "", file); | 320 | ref, (*ref) ? delim : "", file); |
321 | else | ||
322 | util_out (RESP_NONE, "LIST (\\NoSelect) \"%s\" \"%s%s\"", delim, | ||
323 | ref, (*ref) ? delim : ""); | ||
321 | } | 324 | } |
322 | 325 | ||
323 | /* Calls the imap_matcher if a match found out the attribute. */ | 326 | /* Calls the imap_matcher if a match found out the attribute. */ | ... | ... |
-
Please register or sign in to post a comment