diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-03-03 18:02:07 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-03-03 21:23:35 +0100 |
commit | 2e365658c856e1dffd1ee748db40158fdda0edc3 (patch) | |
tree | 7b43b4a6057796fbc65a0dce9af13e062fb9497d /files | |
parent | 4c45483ad3acd5b675e54893686f912a32f10a12 (diff) | |
download | nextcloud-server-2e365658c856e1dffd1ee748db40158fdda0edc3.tar.gz nextcloud-server-2e365658c856e1dffd1ee748db40158fdda0edc3.zip |
better handeling of files that can behave like folder (e.g. archives)
Diffstat (limited to 'files')
-rw-r--r-- | files/index.php | 2 |
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'].""); } |