CoreFiles by mySites.guru
url.php29 lines, 559 bytes, from Joomla_3.8.13-Stable-Full_Package.zip
Raw History Compare with 3.8.12
md5
0b9d59f83e4d78932a26f7902ab0bbea
sha1
82e5d0bb95d9c5db5061f2ba27dc84f95ad6ee6d
sha256
09708f277da02c3c6e9e60051aa3acbe219d8ccc38523b3dc33118f9d3b84c82
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.URL
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;

$value = $field->value;

if ($value == '')
{
	return;
}

$attributes = '';

if (!JUri::isInternal($value))
{
	$attributes = ' rel="nofollow noopener noreferrer" target="_blank"';
}

echo sprintf('<a href="%s"%s>%s</a>',
	htmlspecialchars($value),
	$attributes,
	htmlspecialchars($value)
);

The same content is in 29 releases, Joomla 3.8.4-rc to 3.9.1. See them all, or every version of this file.