mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
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
This commit is contained in:
parent
8cf88300db
commit
484a2e8791
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue