1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 10:04:07 +02:00

Allow specifying external links (bug #3392685)

This commit is contained in:
Jakub Vrana
2013-01-10 17:59:43 -08:00
parent 61dc40a512
commit f6e1c589f9
6 changed files with 37 additions and 3 deletions

View File

@@ -384,9 +384,9 @@ if (!$columns) {
}
}
}
if (!$link) {
if (is_mail($val)) {
$link = "mailto:$val";
if (!$link && ($link = $adminer->selectLink($row[$key], $field)) === null) {
if (is_mail($row[$key])) {
$link = "mailto:$row[$key]";
}
if ($protocol = is_url($row[$key])) {
$link = ($protocol == "http" && $HTTPS