From c6b9e443530fa2598f931571a0aa026b7bef8992 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 9 Jan 2014 00:53:33 -0800 Subject: fix table bbcode --- include/bbcode.php | 2 +- version.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bbcode.php b/include/bbcode.php index dfb0b9fb8..9f07b71ce 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -433,7 +433,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) { if (strpos($Text,'[tr]') !== false) { $Text = preg_replace("/\[tr\](.*?)\[\/tr\]/sm", '$1' ,$Text); } - if (strpos($Text,'[table]') !== false) { + if (strpos($Text,'[/table]') !== false) { $Text = preg_replace("/\[table\](.*?)\[\/table\]/sm", '$1
' ,$Text); $Text = preg_replace("/\[table border=1\](.*?)\[\/table\]/sm", '$1
' ,$Text); $Text = preg_replace("/\[table border=0\](.*?)\[\/table\]/sm", '$1
' ,$Text); diff --git a/version.inc b/version.inc index a90b55250..e61cdf1f9 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2014-01-08.551 +2014-01-09.552 -- cgit v1.2.3