[geeklog-hg] geeklog: Fixed COM_nl2br() that replaces newlines with a line br...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Wed Feb 20 16:29:25 EST 2013


changeset 8965:3e0abc1d7834
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/3e0abc1d7834
user: Tom <websitemaster at cogeco.net>
date: Wed Feb 20 16:29:22 2013 -0500
description:
Fixed COM_nl2br() that replaces newlines with a line break tag (bug #0001141)

diffstat:

 public_html/lib-common.php |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 67f4a04cc362 -r 3e0abc1d7834 public_html/lib-common.php
--- a/public_html/lib-common.php	Wed Feb 20 16:27:29 2013 -0500
+++ b/public_html/lib-common.php	Wed Feb 20 16:29:22 2013 -0500
@@ -8420,9 +8420,8 @@
         define('XHTML', '');
     }
 
-    $tag = '<br' . XHTML . '>';
+    $replace = '<br' . XHTML . '>';
     $find = array("\r\n", "\n\r", "\r", "\n");
-    $replace = array($tag."\r\n", $tag."\n\r", $tag."\r", $tag."\n");
     return str_replace($find, $replace, $string);
 }
 



More information about the geeklog-cvs mailing list