From a48027e640560bcdf5767fc6262b3556f87cac5d Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Tue, 22 Feb 2011 10:23:34 +0100 Subject: [PATCH] Ooops: wrong use of preg_split. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- banana/banana.inc.php.in | 2 +- banana/nntpcore.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/banana/banana.inc.php.in b/banana/banana.inc.php.in index 73f5801..80b07ff 100644 --- a/banana/banana.inc.php.in +++ b/banana/banana.inc.php.in @@ -509,7 +509,7 @@ class Banana $hdr_values[$header] = utf8_encode($hdr_values[$header]); } } - $values = preg_split('[,; ]', $hdr_values[$hdrs['dest']]); + $values = preg_split('/[,; ]/', $hdr_values[$hdrs['dest']]); $hdr_values[$hdrs['dest']] = preg_replace('/,+/', ',', implode(',', $values)); if (!is_null($artid)) { $old =& $this->loadMessage($group, $artid); diff --git a/banana/nntpcore.inc.php b/banana/nntpcore.inc.php index 070135b..d1b2f19 100644 --- a/banana/nntpcore.inc.php +++ b/banana/nntpcore.inc.php @@ -469,7 +469,7 @@ class BananaNNTPCore $array =& $this->fetchResult(); $groups = array(); foreach ($array as &$result) { - @list($group, $desc) = preg_split("[ \t]", $result, 2); + @list($group, $desc) = preg_split('/[ \t]/', $result, 2); $groups[$group] = $desc; } return $groups; -- 2.1.4