cvs: phpweb /include layout.inc
| From: | Gabor Hojtsy | Date: | Sat, 19 Jan 2002 11:12:34 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-8254@lists.php.net to get a copy of this message | ||
goba Sat Jan 19 06:12:34 2002 EDT
Modified files:
/phpweb/include layout.inc
Log:
Also stop at " while finding URLs (at string end)
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.66 phpweb/include/layout.inc:1.67
--- phpweb/include/layout.inc:1.66 Tue Jan 8 14:05:44 2002
+++ phpweb/include/layout.inc Sat Jan 19 06:12:34 2002
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.66 2002/01/08 19:05:44 goba Exp $ */
+/* $Id: layout.inc,v 1.67 2002/01/19 11:12:34 goba Exp $ */
# spacer()
# print a IMG tag for a sized spacer GIF
@@ -386,7 +386,7 @@
$text = htmlspecialchars(trim($text));
/* turn urls into links */
- $text =
preg_replace("/((mailto|http|ftp|nntp|news):.+?)(>|\\s|\\)|\\.\\s|$)/","<a
href=\"\\1\">\\1</a>\\3",$text);
+ $text =
preg_replace("/((mailto|http|ftp|nntp|news):.+?)(>|\\s|\\)|\"|\\.\\s|$)/","<a
href=\"\\1\">\\1</a>\\3",$text);
/* this 'fixing' code will go away eventually. */
$fixes = array('<br>','<p>','</p>');