summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-22 08:13:56 -0200
committerRenato Botelho <renato@netgate.com>2016-01-22 08:13:56 -0200
commitfbdd67e17be5ecbbb6bdcc7b6ea0a4b3042c07d4 (patch)
treeac3b96b8b3a9d2b5021cbac6822b8573454e6d3d
parentf86d982053f426b239463f202d020b86f732473b (diff)
parenteaa3fb69bbfa9163c8f67d69bc7b2360230a5044 (diff)
downloadpfsense-fbdd67e17be5ecbbb6bdcc7b6ea0a4b3042c07d4.zip
pfsense-fbdd67e17be5ecbbb6bdcc7b6ea0a4b3042c07d4.tar.gz
Merge pull request #2505 from phil-davis/patch-5
-rw-r--r--src/usr/local/www/crash_reporter.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/crash_reporter.php b/src/usr/local/www/crash_reporter.php
index f4db694..6cd5adc 100644
--- a/src/usr/local/www/crash_reporter.php
+++ b/src/usr/local/www/crash_reporter.php
@@ -99,7 +99,7 @@ $crash_report_header .= "\nCrash report details:\n";
exec("/usr/bin/grep -vi warning /tmp/PHP_errors.log", $php_errors);
?>
<?php
- if (gettext($_POST['Submit']) == gettext("Yes")) {
+ if ($_POST['Submit'] == "Yes") {
echo gettext("Processing...");
if (!is_dir("/var/crash")) {
mkdir("/var/crash", 0750, true);
@@ -126,7 +126,7 @@ exec("/usr/bin/grep -vi warning /tmp/PHP_errors.log", $php_errors);
} else {
echo gettext("Could not find any crash files.");
}
- } else if (gettext($_POST['Submit']) == gettext("No")) {
+ } else if ($_POST['Submit'] == "No") {
array_map('unlink', glob("/var/crash/*"));
// Erase the contents of the PHP error log
fclose(fopen("/tmp/PHP_errors.log", 'w'));
OpenPOWER on IntegriCloud