1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +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:
Andreas Fischer
2010-08-21 21:27:07 +02:00

View File

@@ -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'); $db->sql_transaction('begin');
$sql = ''; $sql = '';