typos in bbcode, add service class restrictions to jot uploads
This commit is contained in:
parent
89ad19ce01
commit
b044cd922d
5 changed files with 40 additions and 11 deletions
|
@ -113,7 +113,7 @@ function bb2diaspora($Text,$preserve_nl = false) {
|
|||
// to define the closing tag for the list elements. So nested lists
|
||||
// are going to be flattened out in Diaspora for now
|
||||
$endlessloop = 0;
|
||||
while ((strpos($Text, "[/list]") !== false) && (strpos($Text, "[list") !== false)
|
||||
while ((strpos($Text, "[/list]") !== false) && (strpos($Text, "[list") !== false) &&
|
||||
(strpos($Text, "[/ol]") !== false) && (strpos($Text, "[ol]") !== false) &&
|
||||
(strpos($Text, "[/ul]") !== false) && (strpos($Text, "[ul]") !== false) && (++$endlessloop < 20)) {
|
||||
$Text = preg_replace_callback("/\[list\](.*?)\[\/list\]/is", 'diaspora_ul', $Text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue