cvs: php-news-web / article.php
| From: | Mehdi Achour | Date: | Sat, 30 Dec 2006 03:57:36 +0000 |
| Subject: | cvs: php-news-web / article.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-33633@lists.php.net to get a copy of this message | ||
didou Sat Dec 30 03:57:36 2006 UTC
Modified files:
/php-news-web article.php
Log:
make https links clickable (needed for administration links
http://cvs.php.net/viewvc.cgi/php-news-web/article.php?r1=1.34&r2=1.35&diff_format=u
Index: php-news-web/article.php
diff -u php-news-web/article.php:1.34 php-news-web/article.php:1.35
--- php-news-web/article.php:1.34 Sun Sep 25 19:14:46 2005
+++ php-news-web/article.php Sat Dec 30 03:57:36 2006
@@ -172,7 +172,7 @@
# differently, and turn links into real links. it actually appears
# to work fairly well, but could easily be made more sophistimicated.
$line = htmlentities($line,ENT_NOQUOTES,"utf-8");
- $line =
preg_replace("/((mailto|http|ftp|nntp|news):.+?)(>|\\s|\\)|\\.\\s|$)/","<a
href=\"\\1\">\\1</a>\\3",$line);
+ $line =
preg_replace("/((mailto|https?|ftp|nntp|news):.+?)(>|\\s|\\)|\\.\\s|$)/","<a
href=\"\\1\">\\1</a>\\3",$line);
if (!$insig && $line == "-- \r\n") {
echo "<span class=\"signature\">";
$insig = 1;