Just in case IP contains special characters

This commit is contained in:
Jamie Cameron
2019-08-10 16:12:55 -07:00
parent 1eecef7ab9
commit 6230f9e9fc
2 changed files with 5 additions and 3 deletions

View File

@ -219,7 +219,9 @@ elsif (@match) {
if ($anno) {
$cols[$#cols] .= "&nbsp;<img src=images/star.gif>";
}
push(@cols, $minfo->{'desc'}, $act->{'user'}, $act->{'ip'});
push(@cols, $minfo->{'desc'},
&html_escape($act->{'user'}),
&html_escape($act->{'ip'}));
if ($config{'host_search'}) {
push(@cols, $act->{'webmin'});
}

View File

@ -43,10 +43,10 @@ else {
}
print &ui_table_row($text{'view_user'},
$act->{'user'});
&html_escape($act->{'user'}));
print &ui_table_row($text{'view_ip'},
$act->{'ip'});
&html_escape($act->{'ip'}));
if ($act->{'sid'} ne '-') {
print &ui_table_row($text{'view_sid'},