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

remotes/origin/stable45
Michael Gapczynski 13 years ago
parent e7a0c4f0bb
commit ca04c1a0f8
  1. 1
      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();

Loading…
Cancel
Save