From 484a2e879195a088d2474fec9aa7321cb386e2d5 Mon Sep 17 00:00:00 2001 From: ucorina Date: Wed, 5 Oct 2011 14:30:30 +0000 Subject: [PATCH] Issue 192 - Use of deprecated function mysql_escape_string(). git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9499 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/db/DBMysql.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/db/DBMysql.class.php b/classes/db/DBMysql.class.php index 061a35232..8d463d2e5 100644 --- a/classes/db/DBMysql.class.php +++ b/classes/db/DBMysql.class.php @@ -100,7 +100,7 @@ **/ function addQuotes($string) { if(version_compare(PHP_VERSION, "5.9.0", "<") && get_magic_quotes_gpc()) $string = stripslashes(str_replace("\\","\\\\",$string)); - if(!is_numeric($string)) $string = @mysql_escape_string($string); + if(!is_numeric($string)) $string = @mysql_real_escape_string($string); return $string; }