diff options
| author | czaks <marcin@6irc.net> | 2013-07-31 19:25:04 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-07-31 19:25:04 -0400 |
| commit | b35ea557634af42c3f63b7219cd1bfd46cf486a6 (patch) | |
| tree | 0530d3025764e09265fa934f8ae1e906efcad7c6 /post.php | |
| parent | dc9df2b9b3d2994bce02474503b3ebbb56c38ece (diff) | |
| parent | 6bbe407e18681f2812db4345036bb5ae639f5973 (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
templates/thread.html
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -108,7 +108,7 @@ if (isset($_POST['delete'])) { if (count($report) > $config['report_limit']) error($config['error']['toomanyreports']); - $reason = &$_POST['reason']; + $reason = escape_markup_modifiers($_POST['reason']); markup($reason); foreach ($report as &$id) { @@ -379,6 +379,11 @@ if (isset($_POST['delete'])) { error(sprintf($config['error']['toolong'], 'password')); 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 @@ -397,8 +402,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)) { |
