mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 04:13:49 +01:00
better modifier escaping again
This commit is contained in:
parent
b2d5ec253b
commit
998002fd34
@ -1482,7 +1482,8 @@ function markup(&$body, $track_cites = false) {
|
|||||||
|
|
||||||
$modifiers = extract_modifiers($body);
|
$modifiers = extract_modifiers($body);
|
||||||
|
|
||||||
$body = preg_replace('@<tinyboard ([\w\s]+)>(.+?)</tinyboard>@us', '', $body);
|
$body = preg_replace('@<tinyboard (?!escape )([\w\s]+)>(.+?)</tinyboard>@us', '', $body);
|
||||||
|
$body = preg_replace('@<tinyboard escape ([\w\s]+)>@i', '<tinyboard $1>', $body);
|
||||||
|
|
||||||
if (isset($modifiers['raw html']) && $modifiers['raw html'] == '1')
|
if (isset($modifiers['raw html']) && $modifiers['raw html'] == '1')
|
||||||
return $body;
|
return $body;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user