diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-01-11 09:21:08 -0800 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-01-11 09:21:08 -0800 |
commit | 1f6eb68ef91c5743b058d6d8f10a4a20ee3d6d96 (patch) | |
tree | ddde80d7dda0fba6738b2555fa6a23deedb5f02f /settings/ajax | |
parent | b6e0842f4cf701fc45ea5a5a6c3e54aa976a5206 (diff) | |
parent | ffbf273c9a0a7093fc1ec7291df39db3ad288cd1 (diff) | |
download | nextcloud-server-1f6eb68ef91c5743b058d6d8f10a4a20ee3d6d96.tar.gz nextcloud-server-1f6eb68ef91c5743b058d6d8f10a4a20ee3d6d96.zip |
Merge pull request #1150 from owncloud/EnableSSL-AdminMenu
Add security section to admin settings to enable the HTTPS enforcement
Diffstat (limited to 'settings/ajax')
-rw-r--r-- | settings/ajax/setsecurity.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/settings/ajax/setsecurity.php b/settings/ajax/setsecurity.php new file mode 100644 index 00000000000..16a85aade81 --- /dev/null +++ b/settings/ajax/setsecurity.php @@ -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';
\ No newline at end of file |