From: x99bachelart Date: Fri, 12 Sep 2003 16:13:28 +0000 (+0000) Subject: newgroups bugfix X-Git-Tag: 1.8~412 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=8a1d7dee5601ecb3ec975e2a301ddc7e542c61ad;p=banana.git newgroups bugfix --- diff --git a/include/NetNNTP.inc.php b/include/NetNNTP.inc.php index 915f22e..0b82fb0 100644 --- a/include/NetNNTP.inc.php +++ b/include/NetNNTP.inc.php @@ -343,8 +343,9 @@ class nntp { ." GMT $distributions\r\n"); if (substr($this->gline(),0,1)!="2") return false; $result = $this->gline(); + $array=array(); while ($result != ".") { - preg_match("/([^ ]+) (\d+) (\d+) ./",$result,$regs); + preg_match("/([^ ]+) (\d+) (\d+) (.)/",$result,$regs); $array[$regs[1]]=array(intval($regs[2]),intval($regs[3]), intval($regs[4])); $result = $this->gline();