1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-23 06:32:55 +02:00

Use noreferrer in external links

This commit is contained in:
Jakub Vrana
2014-03-21 22:32:31 -07:00
parent 6980d1a1d2
commit cd64b707bd
2 changed files with 2 additions and 2 deletions

View File

@@ -183,7 +183,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
$return = ($val ? lang('yes') : lang('no'));
}
if ($link) {
$return = "<a href='$link'>$return</a>";
$return = "<a href='$link'" . (is_url($link) ? " rel='noreferrer'" : "") . ">$return</a>";
}
if (!$link && !like_bool($field) && preg_match('~int|float|double|decimal~', $field["type"])) {
$return = "<div class='number'>$return</div>"; // Firefox doesn't support <colgroup>