Use htmlspecialchars rather than htmlentities.

This commit is contained in:
Andrew McMillan committed 2010-02-23 22:59:36 +13:00
1 parent 87816b2a05
commit a7316a1135
1 file changed
+1 -1
+1 -1
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 ;
}