mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
[ticket/7716] Data too long for column 'message_subject'
PHPBB3-7716
This commit is contained in:
parent
64e6faa877
commit
91a60aa878
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue