diff options
Diffstat (limited to 'files/index.php')
-rw-r--r-- | files/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/index.php b/files/index.php index 7f3c5c579e7..fbf7a4901a1 100644 --- a/files/index.php +++ b/files/index.php @@ -38,7 +38,7 @@ if(!isset($_SESSION['timezone'])){ } OC_App::setActiveNavigationEntry( "files_index" ); // Load the files -$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : ''; +$dir = isset( $_GET['dir'] ) ? stripslashes($_GET['dir']) : ''; // Redirect if directory does not exist if(!OC_Filesystem::is_dir($dir)) { header("Location: ".$_SERVER['PHP_SELF'].""); |