1
0
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:
Michael Foster 2013-08-17 17:53:39 +10:00
parent b2d5ec253b
commit 998002fd34

View File

@ -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;