mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-13 04:13:29 +02:00
[ticket/14802] Empty/blank lines should not be additional poll options
PHPBB3-14802
This commit is contained in:
parent
6972d06f59
commit
0b3951cb81
@ -1822,7 +1822,7 @@ class parse_message extends bbcode_firstpass
|
||||
$this->message = $poll['poll_title'];
|
||||
$this->bbcode_bitfield = $bbcode_bitfield;
|
||||
|
||||
$poll['poll_options'] = explode("\n", trim($poll['poll_option_text']));
|
||||
$poll['poll_options'] = preg_split('/\s*?\n\s*/', trim($poll['poll_option_text']));
|
||||
$poll['poll_options_size'] = sizeof($poll['poll_options']);
|
||||
|
||||
if (!$poll['poll_title'] && $poll['poll_options_size'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user