The IE 9 fallback technically should no longer be required, but the (legacy)
JavaScript still references the `isFallback` parameter.
namespace wcf\action;
+use Laminas\Diactoros\Response\JsonResponse;
use wcf\system\upload\UploadHandler;
use wcf\util\JSON;
parent::sendResponse();
}
+ $response = new JsonResponse($this->response);
// IE9 is mad if iframe response is application/json
- \header('Content-type: text/plain');
- echo JSON::encode($this->response);
+ $response = $response->withHeader('content-type', 'text/plain');
- exit;
+ return $response;
}
}