diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-31 19:18:55 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-31 19:18:55 -0400 |
| commit | 6bbe407e18681f2812db4345036bb5ae639f5973 (patch) | |
| tree | c50a9b515f0e66dca9393a59ba24eb1967d8632c /post.php | |
| parent | 6d52c8b42813722c49890b6e4f776dc0dabf382c (diff) | |
Markup modifiers: raw HTML
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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)) { |
