svn: /web/php-news/trunk/ article.php
| From: | Olivier DOUCET | Date: | Fri, 13 May 2011 14:34:10 +0000 |
| Subject: | svn: /web/php-news/trunk/ article.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-10995@lists.php.net to get a copy of this message | ||
odoucet Fri, 13 May 2011 14:34:10 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=310995
Log:
Bugfix: some messages were not printed correctly, page was truncated with error "command too
long: XPATH ..."
Changed paths:
U web/php-news/trunk/article.php
Modified: web/php-news/trunk/article.php
===================================================================
--- web/php-news/trunk/article.php 2011-05-13 14:24:22 UTC (rev 310994)
+++ web/php-news/trunk/article.php 2011-05-13 14:34:10 UTC (rev 310995)
@@ -230,8 +230,12 @@
if (!preg_match("/^<.+>\$/", $v)) {
continue;
}
+ if (strlen($v) > 504) {
+ // 512 chars including CRLF
+ continue;
+ }
$res2 = nntp_cmd($s, "XPATH $v",223)
- or print("failed to get reference article id ".htmlspecialchars($v)."<br
/>");
+ or print("<!-- failed to get reference article id ".htmlspecialchars($v)."
-->");
list(,$v) = split("/", trim($res2));
if (empty($v)) {
continue;