diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-28 08:12:08 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-29 20:16:39 +0200 |
commit | cbaf858dea0f2094805edb6aa223bdd6877fff5b (patch) | |
tree | 9da83c325bb6ab94160bec964b8ef64aeda745ae /apps/files/index.php | |
parent | 3b9fac8f81b76af988ea620a207e6c65fa665589 (diff) | |
parent | 80374c7cb2f3c98e350c95f92a9785aacef5d2c4 (diff) | |
download | nextcloud-server-cbaf858dea0f2094805edb6aa223bdd6877fff5b.tar.gz nextcloud-server-cbaf858dea0f2094805edb6aa223bdd6877fff5b.zip |
Merge remote-tracking branch 'gitorious/master' into routing
Conflicts:
apps/files/js/fileactions.js
apps/files_archive/js/archive.js
Diffstat (limited to 'apps/files/index.php')
-rw-r--r-- | apps/files/index.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/index.php b/apps/files/index.php index ffe9493272b..ea5192629b7 100644 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -39,7 +39,7 @@ OCP\App::setActiveNavigationEntry( 'files_index' ); $dir = isset( $_GET['dir'] ) ? stripslashes($_GET['dir']) : ''; // Redirect if directory does not exist if(!OC_Filesystem::is_dir($dir.'/')) { - header('Location: '.$_SERVER['PHP_SELF'].''); + header('Location: '.$_SERVER['SCRIPT_NAME'].''); exit(); } @@ -92,8 +92,8 @@ $maxUploadFilesize = min($maxUploadFilesize ,$freeSpace); $tmpl = new OCP\Template( 'files', 'index', 'user' ); $tmpl->assign( 'fileList', $list->fetchPage(), false ); $tmpl->assign( 'breadcrumb', $breadcrumbNav->fetchPage(), false ); -$tmpl->assign( 'dir', $dir); -$tmpl->assign( 'readonly', !OC_Filesystem::is_writable($dir.'/')); +$tmpl->assign( 'dir', OC_Filesystem::normalizePath($dir)); +$tmpl->assign( 'isCreatable', OC_Filesystem::isCreatable($dir.'/')); $tmpl->assign( 'files', $files ); $tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize); $tmpl->assign( 'uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize)); |