mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
Fixes escape string by using custom function #18
This commit is contained in:
@@ -401,11 +401,11 @@ function is_admin($user_data) {
|
||||
}
|
||||
|
||||
function array_sanitize(&$item) {
|
||||
$item = htmlentities(strip_tags(mysql_real_escape_string($item)));
|
||||
$item = htmlentities(strip_tags(mysql_znote_escape_string($item)));
|
||||
}
|
||||
|
||||
function sanitize($data) {
|
||||
return htmlentities(strip_tags(mysql_real_escape_string($data)));
|
||||
return htmlentities(strip_tags(mysql_znote_escape_string($data)));
|
||||
}
|
||||
|
||||
function output_errors($errors) {
|
||||
|
Reference in New Issue
Block a user