CoreFiles by mySites.guru
url.php29 lines, 559 bytes, from Joomla_3.9.2-Stable-Full_Package.zip
Raw History Compare with 3.9.1
md5
d081bda5c3869237b8fa3810bb4320cd
sha1
f09ba37629a45d1a20f63c8a56b28a41f86b42bc
sha256
6ec2f74b993bb45ea6486e4b1a21b94f174fa9d1dcb2535b1ea9786d7390bf87
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.URL
 *
 * @copyright   Copyright (C) 2005 - 2019 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 26 releases, Joomla 3.9.2-rc to 3.9.14. See them all, or every version of this file.