diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-10-07 11:13:47 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-10-09 11:19:06 +0200 |
commit | 14591d9df70ed453b911b5c6647cb2fd20cf5be5 (patch) | |
tree | b6e13e356b82a3c1129c9da18f61128bbfe5c6b3 /settings | |
parent | bf579a153f8f0d6fb081a1d11718ea48c779da34 (diff) | |
download | nextcloud-server-14591d9df70ed453b911b5c6647cb2fd20cf5be5.tar.gz nextcloud-server-14591d9df70ed453b911b5c6647cb2fd20cf5be5.zip |
Use injected request
Diffstat (limited to 'settings')
-rw-r--r-- | settings/controller/certificatecontroller.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/controller/certificatecontroller.php b/settings/controller/certificatecontroller.php index ef14ff3d9d9..750144e7a2c 100644 --- a/settings/controller/certificatecontroller.php +++ b/settings/controller/certificatecontroller.php @@ -69,7 +69,7 @@ class CertificateController extends Controller { */ public function addPersonalRootCertificate() { $headers = []; - if (\OC::$server->getRequest()->isUserAgent([\OC\AppFramework\Http\Request::USER_AGENT_IE_8])) { + if ($this->request->isUserAgent([\OC\AppFramework\Http\Request::USER_AGENT_IE_8])) { // due to upload iframe workaround, need to set content-type to text/plain $headers['Content-Type'] = 'text/plain'; } |