aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/ajax
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2012-09-26 23:08:40 +0200
committerBjörn Schießle <schiessle@owncloud.com>2012-09-26 23:08:40 +0200
commit21c6cc45e610f47f7bb7a77132a8f2effd5a83f9 (patch)
treeda51d7905cbd01d08a2b08803dcdf7f40342a25e /apps/files_external/ajax
parent9ab887fed543a22f8a57e3322eb4ff23834e2f86 (diff)
downloadnextcloud-server-21c6cc45e610f47f7bb7a77132a8f2effd5a83f9.tar.gz
nextcloud-server-21c6cc45e610f47f7bb7a77132a8f2effd5a83f9.zip
take '\' on windows systems into account to prevent file deletion above upload direectory
Diffstat (limited to 'apps/files_external/ajax')
-rw-r--r--apps/files_external/ajax/removeRootCertificate.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/ajax/removeRootCertificate.php b/apps/files_external/ajax/removeRootCertificate.php
index f87d4a56308..8c196eddf55 100644
--- a/apps/files_external/ajax/removeRootCertificate.php
+++ b/apps/files_external/ajax/removeRootCertificate.php
@@ -5,7 +5,7 @@ OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
$view = \OCP\Files::getStorage("files_external");
-$cert = ltrim($_POST['cert'], "/.");
+$cert = ltrim($_POST['cert'], "/\\.");
$file = \OCP\Config::getSystemValue('datadirectory').$view->getAbsolutePath("").'uploads/'.$cert;
unlink($file);
OC_Mount_Config::createCertificateBundle();