[geeklog-cvs] geeklog: Better detect an HTML block in COM_formatBlock
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Apr 16 10:14:10 EDT 2012
changeset 8600:ede42628dc11
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/ede42628dc11
user: Tom <websitemaster at cogeco.net>
date: Mon Apr 16 10:13:15 2012 -0400
description:
Better detect an HTML block in COM_formatBlock
diffstat:
public_html/lib-common.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 02ff7603be9e -r ede42628dc11 public_html/lib-common.php
--- a/public_html/lib-common.php Sun Apr 15 23:07:47 2012 +0100
+++ b/public_html/lib-common.php Mon Apr 16 10:13:15 2012 -0400
@@ -3815,7 +3815,7 @@
// contains HTML and do not call nl2br() which would only add
// unwanted <br> tags.
- if (substr($blockcontent, 0, 1) != '<') {
+ if (substr(trim($blockcontent), 0, 1) != '<') {
$blockcontent = nl2br($blockcontent);
}
More information about the geeklog-cvs
mailing list