phpBB poll title length limitation

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

phpBB poll title length limitation

Post 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.
CAH, The Great
Post Reply