escape HTML special chars

This commit is contained in:
Roland Gruber 2007-03-21 13:36:09 +00:00
parent 95d9c0dc2c
commit 48a1626427
1 changed files with 4 additions and 2 deletions

View File

@ -418,9 +418,11 @@ class lamList {
if (is_array($entry[$attribute])) {
// sort array
sort($entry[$attribute]);
echo implode("; ", $entry[$attribute]);
echo htmlspecialchars(implode("; ", $entry[$attribute]), ENT_QUOTES, "UTF-8");
}
else {
echo htmlspecialchars($entry[$attribute], ENT_QUOTES, "UTF-8");
}
else echo $entry[$attribute];
}
}