Add squirrelmail patch
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 16 Aug 2014 04:40:32 +0000 (00:40 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Mon, 24 Nov 2014 13:41:43 +0000 (08:41 -0500)
stage5/patches/common/squirrelmail-1.5.1-preg_split.patch [new file with mode: 0644]

diff --git a/stage5/patches/common/squirrelmail-1.5.1-preg_split.patch b/stage5/patches/common/squirrelmail-1.5.1-preg_split.patch
new file mode 100644 (file)
index 0000000..932e70d
--- /dev/null
@@ -0,0 +1,19 @@
+Submitted By: Hugo Villeneuve <hugo at hugovil dot com>
+Date: 2009-12-12
+Initial Package Version: squirrelmail-1.5.1
+Origin: n/a
+Description: Fix warning:
+  <preg_split() expects parameter 4 to be long, string given>
+
+diff -Naur squirrelmail.orig/functions/imap_messages.php squirrelmail.new/functions/imap_messages.php
+--- squirrelmail.orig/functions/imap_messages.php      2006-02-12 13:21:50.000000000 -0500
++++ squirrelmail.new/functions/imap_messages.php       2009-12-12 16:20:18.000000000 -0500
+@@ -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 {