XSS filtering for API Descriptions

这个提交包含在:
Peter Goodhall 2019-10-05 22:09:06 +01:00
父节点 1f5317c96a
当前提交 61b13860f3

查看文件

@ -30,11 +30,11 @@ class API_Model extends CI_Model {
function update_key_description($key, $description) {
$data = array(
'description' => $description,
'description' => xss_clean($description),
);
$this->db->where('key', $key);
$this->db->update('api', $data);
$this->db->where('key', xss_clean($key));
$this->db->update('api', xss_clean($data));
}
@ -93,7 +93,7 @@ class API_Model extends CI_Model {
function delete_key($key) {
$this->db->where('key', $key);
$this->db->where('key', xss_clean($key));
$this->db->delete('api');
}
// Generate API Key