]> source.dussan.org Git - nextcloud-server.git/commitdiff
Call exit() to prevent further code execution if directory does not exist
authorMichael Gapczynski <mtgap@owncloud.com>
Tue, 10 Jul 2012 22:59:42 +0000 (18:59 -0400)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 11 Jul 2012 00:33:11 +0000 (02:33 +0200)
apps/files/index.php

index c2c0cb6170cffbc0588c70454e0dace717b436f4..79bed8e357ed8d711a89bd7a4041e9e7906cff47 100644 (file)
@@ -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();