Added htmlentities for filename and folders with special character

This commit is contained in:
alvarenga.milton 2019-03-03 16:59:39 -03:00
parent 6ab45f07ab
commit cfd24b84fc

View File

@ -196,11 +196,11 @@ class Filemanager extends Common {
if ( $data['type'] == 'directory' ) {
$folders[] = array( "name"=>$data['name'], "type"=>$data['type'], "size"=>$data['size'] );
$folders[] = array( "name"=>htmlentities($data['name'], ENT_QUOTES), "type"=>$data['type'], "size"=>$data['size'] );
}
if ( $data['type'] == 'file' ) {
$files[] = array( "name"=>$data['name'], "type"=>$data['type'], "size"=>$data['size'] );
$files[] = array( "name"=>htmlentities($data['name'], ENT_QUOTES), "type"=>$data['type'], "size"=>$data['size'] );
}
}
@ -785,4 +785,4 @@ class Filemanager extends Common {
return $path;
}
}
}