ports/108521: mail/squirrelmail-devel returns an error while reading messages
Cristian KLEIN
cristi at net.utcluj.ro
Mon Jan 29 16:40:17 UTC 2007
>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 at 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:
More information about the freebsd-ports-bugs
mailing list