diff --git a/htdocs/tools.php b/htdocs/tools.php index 9fda9d01..3f04f920 100644 --- a/htdocs/tools.php +++ b/htdocs/tools.php @@ -106,7 +106,7 @@ class Tools { } $dir = $_POST["directory_path"]; if(!is_readable($dir)){ - $c->messages[] = sprintf(i18n('directory %s is not readable'),htmlentities($dir)); + $c->messages[] = sprintf(i18n('directory %s is not readable'),htmlspecialchars($dir)); dbg_error_log( "importFromDirectory", "directory is not readable"); return ; }