mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge pull request #6686 from marc1706/ticket/15576
[ticket/15576] Handle subject max length same as in form input
This commit is contained in:
commit
7fe0cc7f26
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
// 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');
|
$db->sql_transaction('begin');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue