diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2010-08-19 11:00:42 -0400 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2010-08-19 11:00:42 -0400 |
commit | 91a60aa878e703ff9af714e0316828216d3dcfa3 (patch) | |
tree | 90e13d6e93473256646d35ddbdb34c0f8e5aed45 /phpBB | |
parent | 64e6faa877af36f256da12d122e296f45706d359 (diff) | |
download | forums-91a60aa878e703ff9af714e0316828216d3dcfa3.tar forums-91a60aa878e703ff9af714e0316828216d3dcfa3.tar.gz forums-91a60aa878e703ff9af714e0316828216d3dcfa3.tar.bz2 forums-91a60aa878e703ff9af714e0316828216d3dcfa3.tar.xz forums-91a60aa878e703ff9af714e0316828216d3dcfa3.zip |
[ticket/7716] Data too long for column 'message_subject'
PHPBB3-7716
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions_privmsgs.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php index c4cbb7ca1e..ec05a2a555 100644 --- a/phpBB/includes/functions_privmsgs.php +++ b/phpBB/includes/functions_privmsgs.php @@ -1316,6 +1316,10 @@ function submit_pm($mode, $subject, &$data, $put_in_outbox = true) // Recipient Information $recipients = $to = $bcc = array(); + // First of all make sure the subject are having the correct length. + // To achieve this without cutting off between special chars we convert to an array and then count the elements. + $subject = truncate_string($subject); + if ($mode != 'edit') { // Build Recipient List |