CoreFiles by mySites.guru
url.php25 lines, 558 bytes, from Joomla_3.7.2-Stable-Full_Package.zip
Raw History Compare with 3.7.1
md5
4ce58033e7c8a620f5fc93aba8e6435c
sha1
6c04713f65f36a5a04b44af330f7e235f067efee
sha256
9f2e92ab38727cdfc14872e3515dc09bf1ab8c2ed66aee51c763bf831cffec1a
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.URL
 *
 * @copyright   Copyright (C) 2005 - 2017 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 '<a href="' . htmlspecialchars($value) . '" ' . $attributes . '>' . htmlspecialchars($value) . '</a>';

The same content is in 7 releases, Joomla 3.7.0-rc3 to 3.7.2. See them all, or every version of this file.