diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-11-18 00:17:18 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-11-18 00:17:18 -0600 |
commit | f6c1ade27a0d4a92df0576701fd8447054b11f07 (patch) | |
tree | b67e1b9f9703f111d33d3cca651522f08e63d444 /src/usr/local/www | |
parent | 53436df6a7d0029698d4f89a36f25cbcc65be2d8 (diff) | |
download | pfsense-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')
-rw-r--r-- | src/usr/local/www/crash_reporter.php | 1 |
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']); |