phpBB

Code Changes

File: phpbb/textformatter/s9e/factory.php

  Unmodified   Added   Modified   Removed
Line 218Line 218
		{
$configurator->urlConfig->disallowScheme($scheme);
}

		{
$configurator->urlConfig->disallowScheme($scheme);
}

		foreach (explode(',', $this->config['allowed_schemes_links']) as $scheme)

		foreach (array_filter(explode(',', $this->config['allowed_schemes_links'])) as $scheme)

		{
$configurator->urlConfig->allowScheme(trim($scheme));
}

		{
$configurator->urlConfig->allowScheme(trim($scheme));
}

Line 273Line 273
			->add('#imageurl', __NAMESPACE__ . '\\parser::filter_img_url')
->addParameterByName('urlConfig')
->addParameterByName('logger')

			->add('#imageurl', __NAMESPACE__ . '\\parser::filter_img_url')
->addParameterByName('urlConfig')
->addParameterByName('logger')

			->addParameterByName('max_img_height')
->addParameterByName('max_img_width')

 
			->markAsSafeAsURL()
->setJS('UrlFilter.filter');


			->markAsSafeAsURL()
->setJS('UrlFilter.filter');


Line 470Line 468
		$tag->attributes->add('text');
$tag->template = '<xsl:value-of select="@text"/>';


		$tag->attributes->add('text');
$tag->template = '<xsl:value-of select="@text"/>';


 
		$board_url = generate_board_url() . '/';
$tag->filterChain
->add(array($this->link_helper, 'truncate_local_url'))
->resetParameters()
->addParameterByName('tag')
->addParameterByValue($board_url);

		$tag->filterChain
->add(array($this->link_helper, 'truncate_local_url'))
->resetParameters()
->addParameterByName('tag')

		$tag->filterChain
->add(array($this->link_helper, 'truncate_local_url'))
->resetParameters()
->addParameterByName('tag')

			->addParameterByValue(generate_board_url() . '/');

			->addParameterByValue(preg_replace('(^\\w+:)', '', $board_url));

		$tag->filterChain
->add(array($this->link_helper, 'truncate_text'))
->resetParameters()

		$tag->filterChain
->add(array($this->link_helper, 'truncate_text'))
->resetParameters()