Merge branch '3.3.x'

This commit is contained in:
Marc Alexander 2024-07-28 20:43:23 +02:00
commit 623bd9f3f4
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -1691,7 +1691,7 @@ function submit_pm($mode, $subject, &$data_ary, $put_in_outbox = true)
}
// First of all make sure the subject are having the correct length.
$subject = truncate_string($subject);
$subject = truncate_string($subject, $mode === 'post' ? 120 : 124);
$db->sql_transaction('begin');