Use htmlspecialchars rather than htmlentities.

This commit is contained in:
Andrew McMillan 2010-02-18 23:41:16 +13:00
parent 87816b2a05
commit a7316a1135

View File

@ -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 ;
}