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=ca04c1a0f88ef61aa8206a95547202670971919c;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();