sanitize all input against xss and fixed bug with time encoding when adding result
This commit is contained in:
@@ -195,4 +195,9 @@ function get_time_str($con, $m_id, $s_id) {
|
||||
$time .= "." . $millis;
|
||||
}
|
||||
return $time;
|
||||
}
|
||||
|
||||
function sanitize_input ($input) {
|
||||
$return = strip_tags($input);
|
||||
return htmlspecialchars($return, ENT_QUOTES);
|
||||
}
|
||||
Reference in New Issue
Block a user