mirror of
https://github.com/xevidos/codiad.git
synced 2024-12-23 06:12:16 +01:00
Added htmlentities for filename and folders with special character
This commit is contained in:
parent
6ab45f07ab
commit
cfd24b84fc
1 changed files with 3 additions and 3 deletions
|
@ -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'] );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue