summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/crash_reporter.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-11-18 00:17:18 -0600
committerChris Buechler <cmb@pfsense.org>2015-11-18 00:17:18 -0600
commitf6c1ade27a0d4a92df0576701fd8447054b11f07 (patch)
treeb67e1b9f9703f111d33d3cca651522f08e63d444 /src/usr/local/www/crash_reporter.php
parent53436df6a7d0029698d4f89a36f25cbcc65be2d8 (diff)
downloadpfsense-f6c1ade27a0d4a92df0576701fd8447054b11f07.zip
pfsense-f6c1ade27a0d4a92df0576701fd8447054b11f07.tar.gz
CURLOPT_SAFE_UPLOAD's default changed to false in PHP 5.6. Restore former behavior for crash reporter. Ticket #5427
Diffstat (limited to 'src/usr/local/www/crash_reporter.php')
-rw-r--r--src/usr/local/www/crash_reporter.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usr/local/www/crash_reporter.php b/src/usr/local/www/crash_reporter.php
index 1ec8544..38d7558 100644
--- a/src/usr/local/www/crash_reporter.php
+++ b/src/usr/local/www/crash_reporter.php
@@ -80,6 +80,7 @@ function upload_crash_report($files) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
+ curl_setopt($ch, CURLOPT_SAFE_UPLOAD, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . $g['product_version']);
curl_setopt($ch, CURLOPT_URL, $g['crashreporterurl']);
OpenPOWER on IntegriCloud