freebsd-ports/mail/squirrelmail-devel/files/patch-functions-imap_messages.php
Rong-En Fan 32d1173dbc - Fix error while reading an already read mail which is caused by
incorrect constant passed to preg_split()
- Correct recipient address in return receipt

These are submitted to upstream, too.

PR:		ports/108519, ports/108521
Submitted by:	Cristian KLEIN <cristi at net.utcluj.ro>
Approved by:	maintainer timeout (7 weeks)
2007-03-20 14:53:03 +00:00

12 lines
464 B
PHP

--- 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 {