diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-10-06 14:58:07 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-10-09 11:19:06 +0200 |
commit | bf579a153f8f0d6fb081a1d11718ea48c779da34 (patch) | |
tree | 0dff2c0947f8cc14bdf5ca8908355cd4c70e133c /settings | |
parent | c7aef6c36833b1d9bdec9dc30ceb874b8cb93019 (diff) | |
download | nextcloud-server-bf579a153f8f0d6fb081a1d11718ea48c779da34.tar.gz nextcloud-server-bf579a153f8f0d6fb081a1d11718ea48c779da34.zip |
fix IE8 user agent detection
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 b7bc81920c2..ef14ff3d9d9 100644 --- a/settings/controller/certificatecontroller.php +++ b/settings/controller/certificatecontroller.php @@ -69,7 +69,7 @@ class CertificateController extends Controller { */ public function addPersonalRootCertificate() { $headers = []; - if (\OCP\Util::isIE8()) { + if (\OC::$server->getRequest()->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'; } |