summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-14 13:22:53 +0100
committerVincent Petry <pvince81@owncloud.com>2013-11-14 13:24:05 +0100
commit008c3b80d6cca6a15299afe01f150f075813df8c (patch)
tree829d7f11833253de11b2fdb1107696a1d2cbfa6d /apps/files/ajax
parentc06d8bb0071839480f9e458e58630ca0c205b9cb (diff)
downloadnextcloud-server-008c3b80d6cca6a15299afe01f150f075813df8c.tar.gz
nextcloud-server-008c3b80d6cca6a15299afe01f150f075813df8c.zip
Files app backend now normalizes paths before rendering templates
Before rendering breadcrumbs or the file list, the paths are now normalized. This prevents the UI to show "." breadcrumbs in case the path contains sections with "/./" Fixes #5848
Diffstat (limited to 'apps/files/ajax')
-rw-r--r--apps/files/ajax/list.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/list.php b/apps/files/ajax/list.php
index 350fc7fa5f6..0be38c3b96f 100644
--- a/apps/files/ajax/list.php
+++ b/apps/files/ajax/list.php
@@ -10,7 +10,7 @@ OCP\JSON::checkLoggedIn();
// Load the files
$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
-
+$dir = \OC\Files\Filesystem::normalizePath($dir);
if (!\OC\Files\Filesystem::is_dir($dir . '/')) {
header("HTTP/1.0 404 Not Found");
exit();