mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-20 16:41:26 +02: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:
@@ -1316,6 +1316,10 @@ function submit_pm($mode, $subject, &$data, $put_in_outbox = true)
|
|||||||
// Recipient Information
|
// Recipient Information
|
||||||
$recipients = $to = $bcc = array();
|
$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')
|
if ($mode != 'edit')
|
||||||
{
|
{
|
||||||
// Build Recipient List
|
// Build Recipient List
|
||||||
|
Reference in New Issue
Block a user