summaryrefslogtreecommitdiffstats
path: root/settings/ajax/setsecurity.php
blob: 16a85aade81b08b30c296330da24ee25628fe0d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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';