From 4cb09852e30b51523a199a45648d710852544013 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 23 Jun 2025 19:08:55 +0200 Subject: [PATCH] Display @ after username without server in existing logins --- CHANGELOG.md | 1 + adminer/include/adminer.inc.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c8aa54d9..733436e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Allow exporting SQL in SQL command (bug #1092) - Add section links in database overview - Warn about exceeded max_file_uploads in import +- Display @ after username without server in existing logins - MySQL 5.0-: Do not load partitioning info in alter table (bug #1099) - MariaDB: Parse COLLATE in routine definition (bug #1104) - PostgreSQL: Show structure of inherited tables diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 90adda8a..c57052d3 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -990,7 +990,7 @@ class Adminer { if ($password !== null) { $dbs = $_SESSION["db"][$vendor][$server][$username]; foreach (($dbs ? array_keys($dbs) : array("")) as $db) { - $output .= "
  • ($name) " . h($username . ($server != "" ? "@" . adminer()->serverName($server) : "") . ($db != "" ? " - $db" : "")) . "\n"; + $output .= "
  • ($name) " . h("$username@" . ($server != "" ? adminer()->serverName($server) : "") . ($db != "" ? " - $db" : "")) . "\n"; } } }