Date: Mon, 29 Jan 2007 16:35:56 GMT From: Cristian KLEIN<cristi@net.utcluj.ro> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/108521: mail/squirrelmail-devel returns an error while reading messages Message-ID: <200701291635.l0TGZu3X033000@www.freebsd.org> Resent-Message-ID: <200701291640.l0TGeGgc073842@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 108521 >Category: ports >Synopsis: mail/squirrelmail-devel returns an error while reading messages >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 29 16:40:16 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Cristian KLEIN >Release: FreeBSD 5.4 >Organization: Technical University of Cluj-Napoca >Environment: FreeBSD bavaria.utcluj.ro 5.4-RELEASE-p13 FreeBSD 5.4-RELEASE-p13 #0: Tue Mar 28 16:16:32 EEST 2006 cristiklein@bavaria.utcluj.ro:/usr/obj/usr/src/sys/BAVARIA i386 >Description: squirrelmail-devel returns the following error while reading am already read message: Category: PHP Message: preg_split() expects parameter 4 to be long, string given FILE: /var/www/intranet/sqmail/functions/imap_messages.php LINE: 926 Category: PHP Message: Invalid argument supplied for foreach() FILE: /var/www/intranet/sqmail/functions/mime.php LINE: 52 >How-To-Repeat: NOTE: The error is hard to reproduce. * Install squirrelmail-devel * Navigate through your mails (espacially the ones you already read) * On the bottom of the right frame the above mentioned error will appear >Fix: --- functions/imap_messages.php.orig Sun Feb 12 20:21:50 2006 +++ functions/imap_messages.php Mon Jan 22 20:14:11 2007 @@ -923,7 +923,7 @@ if ($read) { if (preg_match('/.+FLAGS\s\((.*)\)\s/AUi',$read[0],$regs)) { if (trim($regs[1])) { - $flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NI_EMPTY'); + $flags = preg_split('/ /', $regs[1],-1,PREG_SPLIT_NO_EMPTY); } } } else { >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701291635.l0TGZu3X033000>