summaryrefslogtreecommitdiffstats
path: root/apps/files/index.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-07-10 18:59:42 -0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2012-07-11 02:33:11 +0200
commit0b14b4e3e8b184197e6b2ad501d07af0f803c774 (patch)
tree0653675385a0a5652106884044c8a76862db6e7c /apps/files/index.php
parentef1924dbbb662a1e33d7fc74cb7c9e1b36585225 (diff)
downloadnextcloud-server-0b14b4e3e8b184197e6b2ad501d07af0f803c774.tar.gz
nextcloud-server-0b14b4e3e8b184197e6b2ad501d07af0f803c774.zip
Call exit() to prevent further code execution if directory does not exist
Diffstat (limited to 'apps/files/index.php')
-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 c2c0cb6170c..79bed8e357e 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();