1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 10:16:36 +02:00

[ticket/15457] Updated s9e/text-formatter dependency

PHPBB3-15457
This commit is contained in:
JoshyPHP
2017-12-10 02:54:38 +01:00
parent 2643e851f2
commit b9dce3fa65
14 changed files with 48 additions and 49 deletions

View File

@@ -13,7 +13,7 @@
namespace phpbb\textformatter\s9e;
use s9e\TextFormatter\Parser\BuiltInFilters;
use s9e\TextFormatter\Parser\AttributeFilters\UrlFilter;
use s9e\TextFormatter\Parser\Logger;
/**
@@ -196,7 +196,7 @@ class parser implements \phpbb\textformatter\parser_interface
public function get_errors()
{
$errors = array();
foreach ($this->parser->getLogger()->get() as $entry)
foreach ($this->parser->getLogger()->getLogs() as $entry)
{
list(, $msg, $context) = $entry;
@@ -365,7 +365,7 @@ class parser implements \phpbb\textformatter\parser_interface
static public function filter_img_url($url, array $url_config, Logger $logger, $max_height, $max_width)
{
// Validate the URL
$url = BuiltInFilters::filterUrl($url, $url_config, $logger);
$url = UrlFilter::filter($url, $url_config, $logger);
if ($url === false)
{
return false;