XSS exploit prevention
- Calendar - Show Contents - Playlist tooltip in Library page - Adding track to a show - Widgets - Playlist/Webstream title and description - Smart block expansion
This commit is contained in:
parent
b45f71e8f9
commit
74bc485b4b
8 changed files with 63 additions and 11 deletions
|
@ -257,6 +257,10 @@ SQL;
|
|||
//format original length
|
||||
$formatter = new LengthFormatter($row['orig_length']);
|
||||
$row['orig_length'] = $formatter->format();
|
||||
|
||||
// XSS exploit prevention
|
||||
$row["track_title"] = htmlspecialchars($row["track_title"]);
|
||||
$row["creator"] = htmlspecialchars($row["creator"]);
|
||||
}
|
||||
|
||||
return $rows;
|
||||
|
@ -1241,7 +1245,7 @@ SQL;
|
|||
foreach ($out as $crit) {
|
||||
$criteria = $crit->getDbCriteria();
|
||||
$modifier = $crit->getDbModifier();
|
||||
$value = $crit->getDbValue();
|
||||
$value = htmlspecialchars($crit->getDbValue());
|
||||
$extra = $crit->getDbExtra();
|
||||
|
||||
if ($criteria == "limit") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue