cvs: php-news-web / common.inc

From: Date: Mon, 20 May 2002 12:34:26 +0000
Subject: cvs: php-news-web / common.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-10329@lists.php.net to get a copy of this message
imajes Mon May 20 08:34:26 2002 EDT Modified files: /php-news-web common.inc Log: fixes problem with long subjects, eg http://news.php.net/group.php?group=php.cvs Index: php-news-web/common.inc diff -u php-news-web/common.inc:1.11 php-news-web/common.inc:1.12 --- php-news-web/common.inc:1.11 Wed Jan 23 17:47:38 2002 +++ php-news-web/common.inc Mon May 20 08:34:26 2002 @@ -93,7 +93,7 @@ function format_subject($s) { $s = preg_replace("/=\\?(.+?)\\?([qb])\\?(.+?)\\?=/ie", "decode_header('\\1','\\2','\\3')", $s); $s = preg_replace("/^(Re: *)?\[(PHP|PEAR)(-.*)?\] /i", "\\1", $s); - return htmlspecialchars($s); + return wordwrap(htmlspecialchars($s), 200); } function format_date($d) {

« previous php.mirrors (#10329) next »