php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #73186
Patch libc-client-fix revision 2019-02-05 12:39 UTC by rino-s2 at outlook dot it
revision 2018-12-22 12:38 UTC by jachirica at gmail dot com

Patch libc-client-fix for IMAP related Bug #73186

Patch version 2019-02-05 12:39 UTC

Return to Bug #73186 | Download this patch
Patch Revisions:

Developer: rino-s2@outlook.it

--- src/c-client/imap4r1.c.ORIG	2018-12-22 13:24:15.899707119 +0100
+++ src/c-client/imap4r1.c	2018-12-22 13:24:18.551731625 +0100
@@ -4092,7 +4092,7 @@
     unsigned char *txt = reply->text;
     if ((t = imap_parse_astring (stream,&txt,reply,&j)) && txt &&
 	(*txt++ == ' ') && (*txt++ == '(') && (s = strchr (txt,')')) &&
-	(s - txt) && !s[1]) {
+	(s - txt) && (!s[1] || s[1] == ' ')) {
       *s = '\0';		/* tie off status data */
 				/* initialize data block */
       status.flags = status.messages = status.recent = status.unseen =
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC