forked from leftypol/leftypol
Markup modifiers: raw HTML
This commit is contained in:
parent
6d52c8b428
commit
6bbe407e18
2 changed files with 39 additions and 33 deletions
7
post.php
7
post.php
|
@ -379,6 +379,10 @@ if (isset($_POST['delete'])) {
|
|||
wordfilters($post['body']);
|
||||
$post['body'] = escape_markup_modifiers($post['body']);
|
||||
|
||||
if ($mod && isset($post['raw']) && $post['raw']) {
|
||||
$post['body'] = '<tinyboard raw html>' . $post['body'] . '</tinyboard>';
|
||||
}
|
||||
|
||||
if (mysql_version() >= 50503) {
|
||||
$post['body_nomarkup'] = $post['body']; // Assume we're using the utf8mb4 charset
|
||||
} else {
|
||||
|
@ -396,8 +400,7 @@ if (isset($_POST['delete'])) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!($mod && isset($post['raw']) && $post['raw']))
|
||||
$post['tracked_cites'] = markup($post['body'], true);
|
||||
$post['tracked_cites'] = markup($post['body'], true);
|
||||
|
||||
// Check for a flood
|
||||
if (!hasPermission($config['mod']['flood'], $board['uri']) && checkFlood($post)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue