mirror of https://github.com/nextcloud/server.git
Merge pull request #1150 from owncloud/EnableSSL-AdminMenu
Add security section to admin settings to enable the HTTPS enforcementremotes/origin/stable5
commit
1f6eb68ef9
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2013, Lukas Reschke <lukas@statuscode.ch>
|
||||
* This file is licensed under the Affero General Public License version 3 or later.
|
||||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
OC_Util::checkAdminUser();
|
||||
OCP\JSON::callCheck();
|
||||
|
||||
OC_Config::setValue( 'forcessl', filter_var($_POST['enforceHTTPS'], FILTER_VALIDATE_BOOLEAN));
|
||||
|
||||
echo 'true';
|
Loading…
Reference in New Issue