mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-21 17:11:53 +02:00
escaping was leaving slashes ... reverted for time being
git-svn-id: file:///svn/phpbb/trunk@3291 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -381,7 +381,8 @@ class sql_db
|
|||||||
|
|
||||||
function sql_escape($msg)
|
function sql_escape($msg)
|
||||||
{
|
{
|
||||||
return mysql_escape_string($msg);
|
return str_replace("'", "''", str_replace('\\', '\\\\', $msg));
|
||||||
|
// return mysql_escape_string($msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
function sql_error($sql = '')
|
function sql_error($sql = '')
|
||||||
|
@@ -381,7 +381,8 @@ if (!empty($_REQUEST['explain']))
|
|||||||
|
|
||||||
function sql_escape($msg)
|
function sql_escape($msg)
|
||||||
{
|
{
|
||||||
return mysql_escape_string($msg);
|
return str_replace("'", "''", str_replace('\\', '\\\\', $msg));
|
||||||
|
// return mysql_escape_string($msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
function sql_error($sql = '')
|
function sql_error($sql = '')
|
||||||
|
Reference in New Issue
Block a user