mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-18 07:31:32 +02:00
[ticket/14373] Do not pass arrays to strpos()
PHPBB3-14373
This commit is contained in:
@@ -101,7 +101,7 @@ abstract class iohandler_base implements iohandler_interface
|
||||
*/
|
||||
public function add_error_message($error_title, $error_description = false)
|
||||
{
|
||||
if (strpos($error_title, '<br />') !== false)
|
||||
if (!is_array($error_title) && strpos($error_title, '<br />') !== false)
|
||||
{
|
||||
$error_title = strip_tags(htmlspecialchars_decode($error_title));
|
||||
}
|
||||
|
Reference in New Issue
Block a user