}
echo "<tr" . odd() . ">";
foreach ($row as $key => $val) {
+ $link = "";
+ if (isset($links[$key]) && !$columns[$links[$key]]) {
+ if ($orgtables && $jush == "sql") { // MySQL EXPLAIN
+ $table = $row[array_search("table=", $links)];
+ $link = ME . $links[$key] . urlencode($orgtables[$table] != "" ? $orgtables[$table] : $table);
+ } else {
+ $link = ME . "edit=" . urlencode($links[$key]);
+ foreach ($indexes[$links[$key]] as $col => $j) {
+ $link .= "&where" . urlencode("[" . bracket_escape($col) . "]") . "=" . urlencode($row[$j]);
+ }
+ }
+ } elseif (is_url($val)) {
+ $link = $val;
+ }
if ($val === null) {
$val = "<i>NULL</i>";
} elseif ($blobs[$key] && !is_utf8($val)) {
$val = "<code>$val</code>";
}
}
- if (isset($links[$key]) && !$columns[$links[$key]]) {
- if ($orgtables && $jush == "sql") { // MySQL EXPLAIN
- $table = $row[array_search("table=", $links)];
- $link = $links[$key] . urlencode($orgtables[$table] != "" ? $orgtables[$table] : $table);
- } else {
- $link = "edit=" . urlencode($links[$key]);
- foreach ($indexes[$links[$key]] as $col => $j) {
- $link .= "&where" . urlencode("[" . bracket_escape($col) . "]") . "=" . urlencode($row[$j]);
- }
- }
- $val = "<a href='" . h(ME . $link) . "'>$val</a>";
+ if ($link) {
+ $val = "<a href='" . h($link) . "'" . (is_url($link) ? target_blank() : '') . ">$val</a>";
}
echo "<td>$val";
}
Elasticsearch, ClickHouse: Do not print response if HTTP code is not 200
Don't syntax highlight during IME composition (bug #747)
Quote values with leading and trailing zeroes in CSV export (bug #777)
+Link URLs in SQL command (PR #411)
MySQL: Do not export names in quotes with sql_mode='ANSI_QUOTES' (bug #749)
MySQL: Avoid error in PHP 8 when connecting to socket (PR #409)
MySQL: Don't quote default value of text fields (bug #779)