Call exit() to prevent further code execution if directory does not exist
This commit is contained in:
parent
ef1924dbbb
commit
0b14b4e3e8
|
@ -40,6 +40,7 @@ $dir = isset( $_GET['dir'] ) ? stripslashes($_GET['dir']) : '';
|
||||||
// Redirect if directory does not exist
|
// Redirect if directory does not exist
|
||||||
if(!OC_Filesystem::is_dir($dir.'/')) {
|
if(!OC_Filesystem::is_dir($dir.'/')) {
|
||||||
header('Location: '.$_SERVER['PHP_SELF'].'');
|
header('Location: '.$_SERVER['PHP_SELF'].'');
|
||||||
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
$files = array();
|
$files = array();
|
||||||
|
|
Loading…
Reference in New Issue