phpBB

Code Changes

File: phpbb/textformatter/s9e/parser.php

  Unmodified   Added   Modified   Removed
Line 13Line 13

namespace phpbb\textformatter\s9e;



namespace phpbb\textformatter\s9e;


use s9e\TextFormatter\Parser\BuiltInFilters;

use s9e\TextFormatter\Parser\AttributeFilters\UrlFilter;

use s9e\TextFormatter\Parser\Logger;

/**

use s9e\TextFormatter\Parser\Logger;

/**

Line 196Line 196
	public function get_errors()
{
$errors = array();

	public function get_errors()
{
$errors = array();

		foreach ($this->parser->getLogger()->get() as $entry)

		foreach ($this->parser->getLogger()->getLogs() as $entry)

		{
list(, $msg, $context) = $entry;


		{
list(, $msg, $context) = $entry;


Line 365Line 365
	static public function filter_img_url($url, array $url_config, Logger $logger, $max_height, $max_width)
{
// Validate the URL

	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;

		if ($url === false)
{
return false;