mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Also reverse when searching https://github.com/webmin/webmin/issues/614
This commit is contained in:
@@ -95,6 +95,9 @@ elsif ($in{'view'}) {
|
||||
@cats = ( "cat ".quotemeta($file) );
|
||||
}
|
||||
$cat = "(".join(" ; ", @cats).")";
|
||||
if ($config{'reverse'}) {
|
||||
$tailcmd .= " | tac";
|
||||
}
|
||||
$got = &proc::safe_process_exec(
|
||||
"$cat | grep -i -a $filter | $tailcmd",
|
||||
0, 0, STDOUT, undef, 1, 0, undef, 1);
|
||||
|
||||
Reference in New Issue
Block a user