cvs: phpweb /include layout.inc

From: Date: Sun, 04 May 2003 16:10:51 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17306@lists.php.net to get a copy of this message
alindeman Sun May 4 12:10:51 2003 EDT Modified files: /phpweb/include layout.inc Log: oops, I forgot to replace that while I was messing around with the code... Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.145 phpweb/include/layout.inc:1.146 --- phpweb/include/layout.inc:1.145 Sun May 4 11:36:44 2003 +++ phpweb/include/layout.inc Sun May 4 12:10:51 2003 @@ -1,6 +1,6 @@ <?php -/* $Id: layout.inc,v 1.145 2003/05/04 15:36:44 alindeman Exp $ */ +/* $Id: layout.inc,v 1.146 2003/05/04 16:10:51 alindeman Exp $ */ // Print an image for a sized spacer function spacer($width = 1, $height = 1, $return = false, $align = false, $extras = false) @@ -392,7 +392,7 @@ $text = preg_replace("/((mailto|http|ftp|nntp|news):.+?)(&gt;|\\s|\\)|\"|\\.\\s|$)/","<a href=\"\\1\">\\1</a>\\3",$text); /* this 'fixing' code will go away eventually. */ - $fixes = array('<br>', '</p>'); + $fixes = array('<br>', '<p>', '</p>'); reset($fixes); while (list(,$f)=each($fixes)) { $text=str_replace(htmlspecialchars($f), $f, $text);

« previous php.mirrors (#17306) next »