Skip to content
Snippets Groups Projects
Commit 6a2a9155 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

Files: urldecode urlencoded dir names, fixes oc-2111

parent 726409b2
Branches
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ if(!isset($_SESSION['timezone'])) {
}
OCP\App::setActiveNavigationEntry( 'files_index' );
// Load the files
$dir = isset( $_GET['dir'] ) ? stripslashes($_GET['dir']) : '';
$dir = isset( $_GET['dir'] ) ? urldecode(stripslashes($_GET['dir'])) : '';
// Redirect if directory does not exist
if(!OC_Filesystem::is_dir($dir.'/')) {
header('Location: '.$_SERVER['SCRIPT_NAME'].'');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment