mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:17:02 +02:00
fixed an xss issue in the gui
This commit is contained in:
@ -27,6 +27,8 @@ function AUDIT($action = 0, $email = '', $ipaddr = '', $id = 0, $description = '
|
||||
|
||||
$db = Registry::get('db');
|
||||
|
||||
$description = htmlspecialchars($description);
|
||||
|
||||
$query = $db->query("INSERT INTO " . TABLE_AUDIT . " (ts, email, domain, action, ipaddr, meta_id, description) VALUES(?,?,?,?,?,?,?)", array(time(), $email, $a[1], $action, $ipaddr, $id, $description));
|
||||
|
||||
return $db->countAffected();
|
||||
|
Reference in New Issue
Block a user