mirror of https://github.com/BOINC/boinc.git
web: fix XSS vulnerability in team_member.php
This commit is contained in:
parent
afdfc215d7
commit
1117e03d54
|
@ -24,6 +24,7 @@ check_get_args(array("sort_by", "offset", "teamid"));
|
||||||
|
|
||||||
if (isset($_GET["sort_by"])) {
|
if (isset($_GET["sort_by"])) {
|
||||||
$sort_by = $_GET["sort_by"];
|
$sort_by = $_GET["sort_by"];
|
||||||
|
$sort_by = strip_tags($sort_by); // remove XSS nonsense
|
||||||
} else {
|
} else {
|
||||||
$sort_by = "expavg_credit";
|
$sort_by = "expavg_credit";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue