summaryrefslogtreecommitdiffstats
path: root/files/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'files/index.php')
-rw-r--r--files/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/index.php b/files/index.php
index a29d3fb7e1e..79261e495be 100644
--- a/files/index.php
+++ b/files/index.php
@@ -40,7 +40,7 @@ OC_App::setActiveNavigationEntry( "files_index" );
// Load the files
$dir = isset( $_GET['dir'] ) ? stripslashes($_GET['dir']) : '';
// Redirect if directory does not exist
-if(!OC_Filesystem::is_dir($dir)) {
+if(!OC_Filesystem::is_dir($dir.'/')) {
header("Location: ".$_SERVER['PHP_SELF']."");
}