XSS filtering for API Descriptions
这个提交包含在:
父节点
1f5317c96a
当前提交
61b13860f3
共有 1 个文件被更改,包括 4 次插入 和 4 次删除
|
|
@ -30,11 +30,11 @@ class API_Model extends CI_Model {
|
||||||
function update_key_description($key, $description) {
|
function update_key_description($key, $description) {
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
'description' => $description,
|
'description' => xss_clean($description),
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->db->where('key', $key);
|
$this->db->where('key', xss_clean($key));
|
||||||
$this->db->update('api', $data);
|
$this->db->update('api', xss_clean($data));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -93,7 +93,7 @@ class API_Model extends CI_Model {
|
||||||
|
|
||||||
|
|
||||||
function delete_key($key) {
|
function delete_key($key) {
|
||||||
$this->db->where('key', $key);
|
$this->db->where('key', xss_clean($key));
|
||||||
$this->db->delete('api');
|
$this->db->delete('api');
|
||||||
}
|
}
|
||||||
// Generate API Key
|
// Generate API Key
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用