diff options
author | friendica <info@friendica.com> | 2014-01-09 00:53:33 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-09 00:53:33 -0800 |
commit | c6b9e443530fa2598f931571a0aa026b7bef8992 (patch) | |
tree | afada98d636fe9375fbe2442e5dd7bc8f9df8ada /include/bbcode.php | |
parent | 3c477ea8d68f4d92541919490511fb4199364272 (diff) | |
download | volse-hubzilla-c6b9e443530fa2598f931571a0aa026b7bef8992.tar.gz volse-hubzilla-c6b9e443530fa2598f931571a0aa026b7bef8992.tar.bz2 volse-hubzilla-c6b9e443530fa2598f931571a0aa026b7bef8992.zip |
fix table bbcode
Diffstat (limited to 'include/bbcode.php')
-rw-r--r-- | include/bbcode.php | 2 |
1 files changed, 1 insertions, 1 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", '<tr>$1</tr>' ,$Text); } - if (strpos($Text,'[table]') !== false) { + if (strpos($Text,'[/table]') !== false) { $Text = preg_replace("/\[table\](.*?)\[\/table\]/sm", '<table>$1</table>' ,$Text); $Text = preg_replace("/\[table border=1\](.*?)\[\/table\]/sm", '<table border="1" >$1</table>' ,$Text); $Text = preg_replace("/\[table border=0\](.*?)\[\/table\]/sm", '<table border="0" >$1</table>' ,$Text); |