From 94219412c8eec3dcbca92bd129fddd73ce5a701a Mon Sep 17 00:00:00 2001 From: x99bachelart Date: Fri, 5 Sep 2003 15:19:36 +0000 Subject: [PATCH] bugfixes --- include/NetNNTP.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.1.4