1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-23 10:01:55 +02:00

[ticket/15576] Handle subject max length same as in form input

PHPBB-15576
This commit is contained in:
Marc Alexander
2024-07-08 21:37:05 +02:00
parent c790e81fb6
commit 2088ee5e84

View File

@@ -1689,7 +1689,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');