summaryrefslogtreecommitdiffstats
path: root/apps/user_webdavauth/settings.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-02-03 19:58:55 +0100
committerLukas Reschke <lukas@statuscode.ch>2013-02-03 19:58:55 +0100
commitbce59c39458c859d14978f255cf520f111ea78dd (patch)
tree5bc73e35de87e7a7024115da16729b01e3538d96 /apps/user_webdavauth/settings.php
parentb8e6b8692b0c306de6ebfe0a82bfe7bab304cd0a (diff)
downloadnextcloud-server-bce59c39458c859d14978f255cf520f111ea78dd.tar.gz
nextcloud-server-bce59c39458c859d14978f255cf520f111ea78dd.zip
[user_webdavauth] add requesttoken
Diffstat (limited to 'apps/user_webdavauth/settings.php')
-rwxr-xr-xapps/user_webdavauth/settings.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/user_webdavauth/settings.php b/apps/user_webdavauth/settings.php
index 41d7fa51cd2..7eabb0d48cc 100755
--- a/apps/user_webdavauth/settings.php
+++ b/apps/user_webdavauth/settings.php
@@ -24,7 +24,9 @@
OC_Util::checkAdminUser();
if($_POST) {
-
+ // CSRF check
+ OCP\JSON::callCheck();
+
if(isset($_POST['webdav_url'])) {
OC_CONFIG::setValue('user_webdavauth_url', strip_tags($_POST['webdav_url']));
}