Browse Source

Revert "facilitate using markup modifiers multiple times; make raw html not consume the whole post"

This reverts commit e7dd0bbc4a.
pull/40/head
czaks 11 years ago
parent
commit
055c3a7382
  1. 5
      inc/functions.php

5
inc/functions.php

@ -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…
Cancel
Save