diff --git a/files/index.php b/files/index.php
index 7779af9e14f..d7c51c2e373 100644
--- a/files/index.php
+++ b/files/index.php
@@ -654,7 +654,7 @@ function printfilelist($filelist) {
foreach ($filelist as $file) {
if (is_dir($basedir.'/'.$file)) {
- echo "
pixpath/f/folder.gif\" class=\"icon\" alt=\"$strfolder\" /> $file
";
+ echo '
'. htmlspecialchars($file) .'
';
$subfilelist = array();
$currdir = opendir($basedir.'/'.$file);
while (false !== ($subfile = readdir($currdir))) {
@@ -666,7 +666,7 @@ function printfilelist($filelist) {
} else {
$icon = mimeinfo("icon", $file);
- echo "
pixpath/f/$icon\" class=\"icon\" alt=\"$strfile\" /> $file
";
+ echo '
'. htmlspecialchars($file) .'
';
}
}
}