mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 03:36:20 +02:00
psalm
This commit is contained in:
parent
7f8fd5ec1a
commit
583b8958c7
@ -336,9 +336,10 @@ function check_email($email) {
|
|||||||
* @param int|string $string parameters to escape
|
* @param int|string $string parameters to escape
|
||||||
* @return string cleaned data, suitable for use within an SQL statement.
|
* @return string cleaned data, suitable for use within an SQL statement.
|
||||||
*/
|
*/
|
||||||
function escape_string($string) {
|
function escape_string($string_or_int) {
|
||||||
$link = db_connect();
|
$link = db_connect();
|
||||||
$quoted = $link->quote($string);
|
$string_or_int = (string) $string_or_int;
|
||||||
|
$quoted = $link->quote($string_or_int);
|
||||||
return trim($quoted, "'");
|
return trim($quoted, "'");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user