mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-05 22:14:59 +02:00
Merge pull request #4091 from marc1706/ticket/14373
[ticket/14373] Do not pass arrays to strpos() * marc1706/ticket/14373: [ticket/14373] Do not pass arrays to strpos()
This commit is contained in:
commit
332ca57942
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user