mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 02:36:38 +02:00
Explicitly intval the poll option id's
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5506 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -627,7 +627,7 @@ if( $refresh || isset($HTTP_POST_VARS['del_poll_option']) || $error_msg != '' )
|
||||
}
|
||||
else if ( !empty($option_text) )
|
||||
{
|
||||
$poll_options[$option_id] = htmlspecialchars(trim(stripslashes($option_text)));
|
||||
$poll_options[intval($option_id)] = htmlspecialchars(trim(stripslashes($option_text)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user