mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-01 18:47:20 +01:00
Revert "facilitate using markup modifiers multiple times; make raw html not consume the whole post"
This reverts commit e7dd0bbc4a
.
This commit is contained in:
parent
ef9ede073f
commit
07f8aa8c4c
@ -1449,7 +1449,7 @@ function markup(&$body, $track_cites = false) {
|
||||
$body = str_replace("\r", '', $body);
|
||||
$body = utf8tohtml($body);
|
||||
|
||||
if (preg_match_all('@<tinyboard ([\w\s]+)>(.+?)</tinyboard>@um', $body, $modifiers, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) {
|
||||
if (preg_match_all('@<tinyboard ([\w\s]+)>(.+)</tinyboard>@um', $body, $modifiers, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) {
|
||||
$skip_chars = 0;
|
||||
$body_tmp = $body;
|
||||
|
||||
@ -1466,7 +1466,8 @@ function markup(&$body, $track_cites = false) {
|
||||
// Public ban message
|
||||
$replacement = sprintf($config['mod']['ban_message'], $modifier['content']);
|
||||
} elseif ($modifier['type'] == 'raw html') {
|
||||
$replacement = html_entity_decode($modifier['content']);
|
||||
$body = html_entity_decode($modifier['content']);
|
||||
return array();
|
||||
} elseif (preg_match('/^escape /', $modifier['type'])) {
|
||||
// Escaped (not a real modifier)
|
||||
$replacement = '<tinyboard ' . substr($modifier['type'], strlen('escape ')) . '>' . $modifier['content'] . '</tinyboard>';
|
||||
|
Loading…
Reference in New Issue
Block a user