Skip to content

Commit

Permalink
Fix to display wildcard char next to dbs virtualmin/virtualmin-gpl#72…
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Aug 2, 2024
1 parent ae34d0e commit e517300
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mysql/list_dbs.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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))."&nbsp;$wildcard</a>");
push(@cols, $u->[2] eq '' ? $text{'dbs_anon'}
: &html_escape($u->[2]));
push(@cols, $u->[0] eq '%' ? $text{'dbs_any'} :
Expand Down

0 comments on commit e517300

Please sign in to comment.