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") {
|
||||
|
|
|
@ -269,6 +269,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;
|
||||
|
|
|
@ -275,9 +275,9 @@ class Application_Model_ShowBuilder
|
|||
$formatter = new LengthFormatter(Application_Common_DateHelper::ConvertMSToHHMMSSmm($run_time*1000));
|
||||
$row['runtime'] = $formatter->format();
|
||||
|
||||
$row["title"] = $p_item["file_track_title"];
|
||||
$row["creator"] = $p_item["file_artist_name"];
|
||||
$row["album"] = $p_item["file_album_title"];
|
||||
$row["title"] = htmlspecialchars($p_item["file_track_title"]);
|
||||
$row["creator"] = htmlspecialchars($p_item["file_artist_name"]);
|
||||
$row["album"] = htmlspecialchars($p_item["file_album_title"]);
|
||||
|
||||
$row["cuein"] = $p_item["cue_in"];
|
||||
$row["cueout"] = $p_item["cue_out"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue