mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-10 21:26:35 +01:00
Added htmlentities for filename and folders with special character
This commit is contained in:
parent
6ab45f07ab
commit
cfd24b84fc
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user