diff --git a/components/filemanager/class.filemanager.php b/components/filemanager/class.filemanager.php index b33cd6a..0b9f36f 100755 --- a/components/filemanager/class.filemanager.php +++ b/components/filemanager/class.filemanager.php @@ -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; } -} \ No newline at end of file +}