Permalink
Browse files

Use rel="noreferrer" for documentation links

  • Loading branch information...
vrana committed Jan 31, 2011
1 parent 79fa7da commit f195903964bb9c37013de7ecb9ac00a50fcc7d8f
Showing with 3 additions and 3 deletions.
  1. +1 −1 adminer/include/editing.inc.php
  2. +1 −1 adminer/static/editing.js
  3. +1 −1 adminer/user.inc.php
@@ -43,7 +43,7 @@ function select($result, $connection2 = null, $href = "") {
}
$types[$j] = $field->type;
$name = h($field->name);
- echo "<th" . ($orgtable != "" || $field->name != $orgname ? " title='" . h(($orgtable != "" ? "$orgtable." : "") . $orgname) . "'" : "") . ">" . ($href ? "<a href='$href" . strtolower($name) . "' target='_blank'>$name</a>" : $name);
+ echo "<th" . ($orgtable != "" || $field->name != $orgname ? " title='" . h(($orgtable != "" ? "$orgtable." : "") . $orgname) . "'" : "") . ">" . ($href ? "<a href='$href" . strtolower($name) . "' target='_blank' rel='noreferrer'>$name</a>" : $name);
}
echo "</thead>\n";
}
@@ -10,7 +10,7 @@ function bodyLoad(version, protocol) {
script.src = jushRoot + 'jush.js';
script.onload = function () {
if (window.jush) { // IE runs in case of an error too
- jush.create_links = ' target="_blank"';
+ jush.create_links = ' target="_blank" rel="noreferrer"';
jush.urls.sql[0] = 'http://dev.mysql.com/doc/refman/' + version + '/en/$key';
jush.urls.sql_sqlset = jush.urls.sql[0];
jush.urls.sqlset[0] = jush.urls.sql[0];
View
@@ -127,7 +127,7 @@
<?php
//! MAX_* limits, REQUIRE
echo "<table cellspacing='0'>\n";
-echo "<thead><tr><th colspan='2'><a href='http://dev.mysql.com/doc/refman/" . substr($connection->server_info, 0, 3) . "/en/grant.html'>" . lang('Privileges') . "</a>";
+echo "<thead><tr><th colspan='2'><a href='http://dev.mysql.com/doc/refman/" . substr($connection->server_info, 0, 3) . "/en/grant.html#priv_level' target='_blank' rel='noreferrer'>" . lang('Privileges') . "</a>";
$i = 0;
foreach ($grants as $object => $grant) {
echo '<th>' . ($object != "*.*" ? "<input name='objects[$i]' value='" . h($object) . "' size='10'>" : "<input type='hidden' name='objects[$i]' value='*.*' size='10'>*.*"); //! separate db, table, columns, PROCEDURE|FUNCTION, routine

0 comments on commit f195903

Please sign in to comment.