diff --git a/index.php b/index.php
index adef6cc..ba01ece 100644
--- a/index.php
+++ b/index.php
@@ -187,13 +187,13 @@ function display_block( $file )
if ($file_ext === "dir")
{
- $rtn .= "
" . basename($file) . "
";
+ $rtn .= " " . htmlspecialchars(basename($file), ENT_QUOTES) . "
";
$rtn .= " " . count_dir_files($file) . " files
";
$rtn .= " Size: " . get_directory_size($file) . "
";
}
else
{
- $rtn .= " " . basename($file) . "
";
+ $rtn .= " " . htmlspecialchars(basename($file), ENT_QUOTES) . "
";
$rtn .= " Size: " . display_size(filesize($file)) . "
";
$rtn .= " Last modified: " . date("D. F jS, Y - h:ia", filemtime($file)) . "
";
}