use wcf\system\exception\PermissionDeniedException;
use wcf\system\option\user\UserOptionHandler;
use wcf\system\WCF;
+use wcf\util\HeaderUtil;
use wcf\util\UserUtil;
/**
$this->data['@@generatedAt'] = TIME_NOW;
- // header
@\header('Content-type: application/json; charset=UTF-8');
@\header('Content-disposition: attachment; filename="user-export-gdpr-' . $this->user->userID . '.json"');
- // no cache headers
- @\header('Pragma: no-cache');
- @\header('Expires: 0');
+ HeaderUtil::sendNoCacheHeaders();
echo \json_encode($this->data, \JSON_PRETTY_PRINT);