From: Michael Gapczynski Date: Tue, 10 Jul 2012 22:59:42 +0000 (-0400) Subject: Call exit() to prevent further code execution if directory does not exist X-Git-Tag: v4.5.0beta1~74^2~372^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0b14b4e3e8b184197e6b2ad501d07af0f803c774;p=nextcloud-server.git Call exit() to prevent further code execution if directory does not exist --- 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();