From 918f0a9469aa05a9300a25c2ca60e2be83411226 Mon Sep 17 00:00:00 2001 From: NewEraCracker Date: Sat, 30 Apr 2016 18:33:46 +0100 Subject: Fix Redmine #6097 Replace '/usr/bin/grep -vi warning' with '/bin/cat' --- src/usr/local/www/crash_reporter.php | 2 +- src/usr/local/www/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/usr/local/www/crash_reporter.php b/src/usr/local/www/crash_reporter.php index 3542d96..e8918b3 100644 --- a/src/usr/local/www/crash_reporter.php +++ b/src/usr/local/www/crash_reporter.php @@ -96,7 +96,7 @@ $crash_report_header .= php_uname("r") . "\n"; $crash_report_header .= php_uname("v") . "\n"; $crash_report_header .= "\nCrash report details:\n"; -exec("/usr/bin/grep -vi warning /tmp/PHP_errors.log", $php_errors); +exec("/bin/cat /tmp/PHP_errors.log", $php_errors); if ($_POST['Submit'] == "Yes") { echo gettext("Processing..."); diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index f53769d..1f2eac0 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -90,7 +90,7 @@ if ($g['disablecrashreporter'] != true) { // Check to see if we have a crash report $x = 0; if (file_exists("/tmp/PHP_errors.log")) { - $total = `/usr/bin/grep -vi warning /tmp/PHP_errors.log | /usr/bin/wc -l | /usr/bin/awk '{ print $1 }'`; + $total = `/bin/cat /tmp/PHP_errors.log | /usr/bin/wc -l | /usr/bin/awk '{ print $1 }'`; if ($total > 0) { $x++; } -- cgit v1.1