0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00
This commit is contained in:
David Goodwin 2019-01-16 09:24:33 +00:00
parent 7f8fd5ec1a
commit 583b8958c7

View File

@ -336,9 +336,10 @@ function check_email($email) {
* @param int|string $string parameters to escape
* @return string cleaned data, suitable for use within an SQL statement.
*/
function escape_string($string) {
function escape_string($string_or_int) {
$link = db_connect();
$quoted = $link->quote($string);
$string_or_int = (string) $string_or_int;
$quoted = $link->quote($string_or_int);
return trim($quoted, "'");
}