From 2e365658c856e1dffd1ee748db40158fdda0edc3 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 3 Mar 2012 18:02:07 +0100 Subject: better handeling of files that can behave like folder (e.g. archives) --- files/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/index.php') 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'].""); } -- cgit v1.2.3