mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
- only minor adjustements (we are now able to use other functions due to the increased php requirements)
git-svn-id: file:///svn/phpbb/trunk@5557 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -276,7 +276,12 @@ class dbal_mysql extends dbal
|
||||
*/
|
||||
function sql_escape($msg)
|
||||
{
|
||||
return mysql_escape_string($msg);
|
||||
if (!$this->db_connect_id)
|
||||
{
|
||||
return @mysql_real_escape_string($msg);
|
||||
}
|
||||
|
||||
return @mysql_real_escape_string($msg, $this->db_connect_id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user