mirror of https://github.com/BOINC/boinc.git
fix XSS
This commit is contained in:
parent
6f5fc348d4
commit
99de7f66f4
|
@ -291,7 +291,7 @@ xml_header();
|
||||||
$req = $_POST['request'];
|
$req = $_POST['request'];
|
||||||
$r = simplexml_load_string($req);
|
$r = simplexml_load_string($req);
|
||||||
if (!$r) {
|
if (!$r) {
|
||||||
xml_error(-1, "can't parse request message: $req", __FILE__, __LINE__);
|
xml_error(-1, "can't parse request message: ".htmlspecialchars($req), __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch($r->getName()) {
|
switch($r->getName()) {
|
||||||
|
|
Loading…
Reference in New Issue