Commit 95abbd78 authored by Franco Fichtner's avatar Franco Fichtner

log files: search case-insensitive

parent ce2d7c10
......@@ -409,11 +409,11 @@ function dump_clog($logfile, $tail, $withorig = true, $grepfor = '', $grepinvert
$logarr = '';
if (is_array($grepfor)) {
$grepline .= " | /usr/bin/egrep " . escapeshellarg(implode("|", $grepfor));
$grepline .= " | /usr/bin/egrep -i " . escapeshellarg(implode("|", $grepfor));
}
if (is_array($grepinvert)) {
$grepline .= " | /usr/bin/egrep -v " . escapeshellarg(implode("|", $grepinvert));
$grepline .= " | /usr/bin/egrep -iv " . escapeshellarg(implode("|", $grepinvert));
}
if (is_dir($logfile)) {
......@@ -440,11 +440,11 @@ function dump_log($logfile, $tail, $withorig = true, $grepfor = '', $grepinvert
$logarr = '';
if (is_array($grepfor)) {
$grepline .= " | /usr/bin/egrep " . escapeshellarg(implode("|", $grepfor));
$grepline .= " | /usr/bin/egrep -i " . escapeshellarg(implode("|", $grepfor));
}
if (is_array($grepinvert)) {
$grepline .= " | /usr/bin/egrep -v " . escapeshellarg(implode("|", $grepinvert));
$grepline .= " | /usr/bin/egrep -iv " . escapeshellarg(implode("|", $grepinvert));
}
if (is_dir($logfile)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment