From f6c1ade27a0d4a92df0576701fd8447054b11f07 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Wed, 18 Nov 2015 00:17:18 -0600 Subject: CURLOPT_SAFE_UPLOAD's default changed to false in PHP 5.6. Restore former behavior for crash reporter. Ticket #5427 --- src/usr/local/www/crash_reporter.php | 1 + 1 file changed, 1 insertion(+) (limited to 'src/usr/local/www/crash_reporter.php') 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']); -- cgit v1.1