mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
- Firebird supports the standard format for escaping stuff
git-svn-id: file:///svn/phpbb/trunk@7171 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
70ab9ac72a
commit
51088c46fb
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ class dbal_firebird extends dbal
|
|||
*/
|
||||
function sql_escape($msg)
|
||||
{
|
||||
return (@ini_get('magic_quotes_sybase') == 1 || strtolower(@ini_get('magic_quotes_sybase')) == 'on') ? str_replace('\\\'', '\'', addslashes($msg)) : str_replace('\'', '\'\'', stripslashes($msg));
|
||||
return str_replace("'", "''", $msg);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue