diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-05-02 13:13:20 +0200 |
---|---|---|
committer | Michael Cullum <unknownbliss@phpbbdevelopers.net> | 2012-06-17 19:07:17 +0100 |
commit | a259db71058cd20eb54ac3b45a88b558c66e4cb5 (patch) | |
tree | 07473f8c1b393c9689319b0041c9c83897c53845 /phpBB/includes/functions_posting.php | |
parent | 53d846477665ea6b8a3463318f03050282aec89a (diff) | |
download | forums-a259db71058cd20eb54ac3b45a88b558c66e4cb5.tar forums-a259db71058cd20eb54ac3b45a88b558c66e4cb5.tar.gz forums-a259db71058cd20eb54ac3b45a88b558c66e4cb5.tar.bz2 forums-a259db71058cd20eb54ac3b45a88b558c66e4cb5.tar.xz forums-a259db71058cd20eb54ac3b45a88b558c66e4cb5.zip |
[ticket/10640] Do not change default value of truncate_string()
The default value should be kept, so we do not change the behaviour for MODs
and Extensions that use the function with its default values.
PHPBB3-10640
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index f77f54679f..c549f99091 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -1657,8 +1657,8 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u // First of all make sure the subject and topic title 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); - $data['topic_title'] = truncate_string($data['topic_title']); + $subject = truncate_string($subject, 120); + $data['topic_title'] = truncate_string($data['topic_title'], 120); // Collect some basic information about which tables and which rows to update/insert $sql_data = $topic_row = array(); |