aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-07-10 18:59:42 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-07-10 18:59:42 -0400
commit3134a962d92e2f67ea989ba775bf3d98c72bb1f0 (patch)
tree86dd70908812972ad43a3df4d4b04ee719188886 /apps
parent7c908a0016db30c70271304c4d080383911645e3 (diff)
downloadnextcloud-server-3134a962d92e2f67ea989ba775bf3d98c72bb1f0.tar.gz
nextcloud-server-3134a962d92e2f67ea989ba775bf3d98c72bb1f0.zip
Call exit() to prevent further code execution if directory does not exist
Diffstat (limited to 'apps')
-rw-r--r--apps/files/index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/index.php b/apps/files/index.php
index ed36c5edab0..907dfda3656 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -40,6 +40,7 @@ $dir = isset( $_GET['dir'] ) ? stripslashes($_GET['dir']) : '';
// Redirect if directory does not exist
if(!OC_Filesystem::is_dir($dir.'/')) {
header('Location: '.$_SERVER['PHP_SELF'].'');
+ exit();
}
$files = array();