From: x99bachelart Date: Fri, 5 Sep 2003 15:19:36 +0000 (+0000) Subject: bugfixes X-Git-Tag: 1.8~428 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=94219412c8eec3dcbca92bd129fddd73ce5a701a;p=banana.git bugfixes --- diff --git a/include/NetNNTP.inc.php b/include/NetNNTP.inc.php index 12220aa..08da542 100644 --- a/include/NetNNTP.inc.php +++ b/include/NetNNTP.inc.php @@ -64,7 +64,7 @@ class nntp { $host = $_host; $port = 119; } - $this->ns = fsockopen($host, $port, &$errno, &$errstr, $_timeout); + $this->ns = fsockopen($host, $port, $errno, $errstr, $_timeout); $this->debug = $_debug; if (!$this->ns) { if ($this->debug) { @@ -320,7 +320,7 @@ class nntp { if (substr($this->gline(),0,1)!="2") return false; $result = $this->gline(); 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();