mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 05:48:51 +00:00
Merge branch 'ticket/nickvergessen/7716' into develop-olympus
* ticket/nickvergessen/7716: [ticket/7716] Data too long for column 'message_subject'
This commit is contained in:
commit
7474b69175
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