mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
escape logged commands
This commit is contained in:
@@ -9,7 +9,7 @@ sub parse_webmin_log
|
|||||||
{
|
{
|
||||||
local ($user, $script, $action, $type, $object, $p) = @_;
|
local ($user, $script, $action, $type, $object, $p) = @_;
|
||||||
if ($action eq "run") {
|
if ($action eq "run") {
|
||||||
return &text('log_run', "<tt>$p->{'cmd'}</tt>");
|
return &text('log_run', "<tt>".&html_escape($p->{'cmd'})."</tt>");
|
||||||
}
|
}
|
||||||
elsif ($action eq "clear") {
|
elsif ($action eq "clear") {
|
||||||
return $text{'log_clear'};
|
return $text{'log_clear'};
|
||||||
|
|||||||
Reference in New Issue
Block a user