mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00: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:
parent
05bc60b26d
commit
36b452bae4
2 changed files with 4 additions and 2 deletions
|
@ -381,7 +381,8 @@ class sql_db
|
|||
|
||||
function sql_escape($msg)
|
||||
{
|
||||
return mysql_escape_string($msg);
|
||||
return str_replace("'", "''", str_replace('\\', '\\\\', $msg));
|
||||
// return mysql_escape_string($msg);
|
||||
}
|
||||
|
||||
function sql_error($sql = '')
|
||||
|
|
|
@ -381,7 +381,8 @@ if (!empty($_REQUEST['explain']))
|
|||
|
||||
function sql_escape($msg)
|
||||
{
|
||||
return mysql_escape_string($msg);
|
||||
return str_replace("'", "''", str_replace('\\', '\\\\', $msg));
|
||||
// return mysql_escape_string($msg);
|
||||
}
|
||||
|
||||
function sql_error($sql = '')
|
||||
|
|
Loading…
Add table
Reference in a new issue