aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2010-08-19 11:00:42 -0400
committerJoas Schilling <nickvergessen@gmx.de>2010-08-21 15:14:16 -0400
commit2455a744e67dc2d0bbdf699af2d699b94aed3ad6 (patch)
tree378137b250919a73ea1f73ee115decffe7776a63
parent64e6faa877af36f256da12d122e296f45706d359 (diff)
downloadforums-2455a744e67dc2d0bbdf699af2d699b94aed3ad6.tar
forums-2455a744e67dc2d0bbdf699af2d699b94aed3ad6.tar.gz
forums-2455a744e67dc2d0bbdf699af2d699b94aed3ad6.tar.bz2
forums-2455a744e67dc2d0bbdf699af2d699b94aed3ad6.tar.xz
forums-2455a744e67dc2d0bbdf699af2d699b94aed3ad6.zip
[ticket/7716] Data too long for column 'message_subject'
PHPBB3-7716
-rw-r--r--phpBB/includes/functions_privmsgs.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php
index c4cbb7ca1e..4c34bc92ca 100644
--- a/phpBB/includes/functions_privmsgs.php
+++ b/phpBB/includes/functions_privmsgs.php
@@ -1380,6 +1380,9 @@ function submit_pm($mode, $subject, &$data, $put_in_outbox = true)
}
}
+ // First of all make sure the subject are having the correct length.
+ $subject = truncate_string($subject);
+
$db->sql_transaction('begin');
$sql = '';