mirror of https://github.com/BOINC/boinc.git
web: fix SQL injection vulnerability
This commit is contained in:
parent
b80ea2aa04
commit
21b7b898fa
|
@ -311,6 +311,7 @@ class BoincResult {
|
|||
}
|
||||
static function lookup_name($name) {
|
||||
$db = BoincDb::get();
|
||||
$name = BoincDb::escape_string($name);
|
||||
return $db->lookup('result', 'BoincResult', "name='$name'");
|
||||
}
|
||||
function delete() {
|
||||
|
|
Loading…
Reference in New Issue