1
0
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:
Marc Alexander
2015-12-20 22:20:56 +01:00
parent c2a5411dcb
commit 2fe81c1ccb

View File

@@ -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));
}