mirror of
https://github.com/friendica/friendica
synced 2025-04-19 06:30:10 +00:00
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
|
@ -162,7 +162,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) {
|
|||
|
||||
// handle nested lists
|
||||
$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("/\[list\](.*?)\[\/list\]/ism", '<ul class="listbullet" style="list-style-type: circle;">$1</ul>' ,$Text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue