Update apps/files/index.php
fix dirnames containing "+" not displayed
This commit is contained in:
parent
ac784baef6
commit
b563935498
|
@ -36,7 +36,7 @@ if(!isset($_SESSION['timezone'])) {
|
||||||
}
|
}
|
||||||
OCP\App::setActiveNavigationEntry( 'files_index' );
|
OCP\App::setActiveNavigationEntry( 'files_index' );
|
||||||
// Load the files
|
// Load the files
|
||||||
$dir = isset( $_GET['dir'] ) ? urldecode(stripslashes($_GET['dir'])) : '';
|
$dir = isset( $_GET['dir'] ) ? rawurldecode(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['SCRIPT_NAME'].'');
|
header('Location: '.$_SERVER['SCRIPT_NAME'].'');
|
||||||
|
|
Loading…
Reference in New Issue