Page 1 of 1

phpBB poll title length limitation

Posted: Thu Nov 20, 2008 7:27 pm
by cah
When I was trying to create a poll with a long title, it complained about it is longer than 100 characters.

I checked on the internet and found one post saying one of the php file is checking the length while the database has 255 as the default value.

The file is message_parser.php sitting under includes/ directory.

Line# 1634

changed from:

Code: Select all

if (utf8_strlen(preg_replace('#\[\/?[a-z\*\+\-]+(=[\S]+)?\]#ius', ' ', $this->message)) > 100)
to:

Code: Select all

if (utf8_strlen(preg_replace('#\[\/?[a-z\*\+\-]+(=[\S]+)?\]#ius', ' ', $this->message)) > 255)
The limit is now increased from 100 to 255.