mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Function check_sql removed
This function was used before we started using paramaterized queries. So a better way has been in use for many years time to deprecate and remove the check_sql function.
This commit is contained in:
@@ -127,22 +127,6 @@ if (!function_exists('check_str')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('check_sql')) {
|
||||
/**
|
||||
* Alias of trim
|
||||
*
|
||||
* @param string $string
|
||||
*
|
||||
* @return void
|
||||
* @see trim()
|
||||
* @deprecated 5.0
|
||||
*/
|
||||
function check_sql($string) {
|
||||
trigger_error('check_sql should not be used. Use parameterized queries instead.', E_USER_WARNING);
|
||||
return trim($string); //remove white space
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('check_cidr')) {
|
||||
/**
|
||||
* Checks if the $ip_address is within the range of the given $cidr
|
||||
|
||||
Reference in New Issue
Block a user