mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix to display wildcard char next to dbs https://github.com/virtualmin/virtualmin-gpl/issues/723#issuecomment-2263713657
This commit is contained in:
@@ -26,10 +26,13 @@ if (@{$d->{'data'}}) {
|
||||
$i++;
|
||||
next if ($access{'perms'} == 2 && !&can_edit_db($u->[1]));
|
||||
local @cols;
|
||||
my $dbname = &unquote_mysql_database($u->[1]);
|
||||
my $big_style = ' style="position: absolute; margin-top: -2px;"';
|
||||
my $wildcard = $u->[1]=~ /\_/ &&
|
||||
$u->[1] eq $dbname ? "<big$big_style>∗</big>" : '';
|
||||
push(@cols, "<a href='edit_db.cgi?idx=$i'>".
|
||||
($u->[1] eq '%' || $u->[1] eq '' ? $text{'dbs_any'} :
|
||||
&html_escape(&unquote_mysql_database(
|
||||
$u->[1])))."</a>");
|
||||
&html_escape($dbname))." $wildcard</a>");
|
||||
push(@cols, $u->[2] eq '' ? $text{'dbs_anon'}
|
||||
: &html_escape($u->[2]));
|
||||
push(@cols, $u->[0] eq '%' ? $text{'dbs_any'} :
|
||||
|
||||
Reference in New Issue
Block a user