aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-11-26 17:04:16 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-11-26 17:04:16 +0000
commit1e6a69cae7a1f8a282273d203e88bd9ccc9c554b (patch)
treec51e15fc487bfe1ccc0aa65255838504c7246afd
parentd4efe02e3fefc1482c5cb703691b110c30ea36e3 (diff)
downloadforums-1e6a69cae7a1f8a282273d203e88bd9ccc9c554b.tar
forums-1e6a69cae7a1f8a282273d203e88bd9ccc9c554b.tar.gz
forums-1e6a69cae7a1f8a282273d203e88bd9ccc9c554b.tar.bz2
forums-1e6a69cae7a1f8a282273d203e88bd9ccc9c554b.tar.xz
forums-1e6a69cae7a1f8a282273d203e88bd9ccc9c554b.zip
#15484
git-svn-id: file:///svn/phpbb/trunk@8251 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/functions_posting.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 24d22dcc60..e7d6fd2bc2 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -1628,7 +1628,9 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
// Display edit info if edit reason given or user is editing his post, which is not the last within the topic.
if ($data['post_edit_reason'] || (!$auth->acl_get('m_edit', $data['forum_id']) && ($post_mode == 'edit' || $post_mode == 'edit_first_post')))
{
- $sql_data[POSTS_TABLE]['sql'] = array(
+ $data['post_edit_reason'] = truncate_string($data['post_edit_reason'], 255, false);
+
+ $sql_data[POSTS_TABLE]['sql'] = array(
'post_edit_time' => $current_time,
'post_edit_reason' => $data['post_edit_reason'],
'post_edit_user' => (int) $data['post_edit_user'],