summaryrefslogtreecommitdiff
path: root/inc/mod/pages.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-31 20:54:20 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-31 20:54:20 -0400
commit0f9df0ac6608d3398cd480465dcab1b0227ec9c0 (patch)
tree55488329e9a1dd9a0f14c6f8620ce3772bece3ff /inc/mod/pages.php
parent328484bee7cab9ce354121413cc8d96c3e227aea (diff)
Newline before <tinyboard ban message>
Diffstat (limited to 'inc/mod/pages.php')
-rw-r--r--inc/mod/pages.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index f5b1101d..7edc0ee6 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -1222,7 +1222,7 @@ function mod_ban_post($board, $delete, $post, $token = false) {
$_POST['message'] = str_replace('%LENGTH%', strtoupper($length_english), $_POST['message']);
$query = prepare(sprintf('UPDATE `posts_%s` SET `body_nomarkup` = CONCAT(`body_nomarkup`, :body_nomarkup) WHERE `id` = :id', $board));
$query->bindValue(':id', $post);
- $query->bindValue(':body_nomarkup', sprintf('<tinyboard ban message>%s</tinyboard>', $_POST['message']));
+ $query->bindValue(':body_nomarkup', sprintf("\n<tinyboard ban message>%s</tinyboard>", $_POST['message']));
$query->execute() or error(db_error($query));
rebuildPost($post);