Skip to content
Snippets Groups Projects
Commit 0b14b4e3 authored by Michael Gapczynski's avatar Michael Gapczynski Committed by Jörn Friedrich Dreyer
Browse files

Call exit() to prevent further code execution if directory does not exist

parent ef1924db
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment