aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-10-07 11:13:47 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-10-09 11:19:06 +0200
commit14591d9df70ed453b911b5c6647cb2fd20cf5be5 (patch)
treeb6e13e356b82a3c1129c9da18f61128bbfe5c6b3 /settings
parentbf579a153f8f0d6fb081a1d11718ea48c779da34 (diff)
downloadnextcloud-server-14591d9df70ed453b911b5c6647cb2fd20cf5be5.tar.gz
nextcloud-server-14591d9df70ed453b911b5c6647cb2fd20cf5be5.zip
Use injected request
Diffstat (limited to 'settings')
-rw-r--r--settings/controller/certificatecontroller.php2
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';
}