mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Removed 'global' str_replace for \'
git-svn-id: file:///svn/phpbb/trunk@1697 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
2fccbeb771
commit
26d26148d9
3 changed files with 6 additions and 6 deletions
|
@ -154,7 +154,7 @@ class sql_db
|
|||
}
|
||||
else if( eregi("^INSERT ", $query) )
|
||||
{
|
||||
$this->result = odbc_exec($this->db_connect_id, str_replace("\'", "''", $query));
|
||||
$this->result = odbc_exec($this->db_connect_id, $query);
|
||||
|
||||
if( $this->result )
|
||||
{
|
||||
|
@ -171,7 +171,7 @@ class sql_db
|
|||
}
|
||||
else
|
||||
{
|
||||
$this->result = odbc_exec($this->db_connect_id, str_replace("\'", "''", $query));
|
||||
$this->result = odbc_exec($this->db_connect_id, $query);
|
||||
|
||||
if( $this->result )
|
||||
{
|
||||
|
|
|
@ -151,7 +151,7 @@ class sql_db
|
|||
}
|
||||
else if( eregi("^INSERT ", $query) )
|
||||
{
|
||||
$this->result = odbc_exec($this->db_connect_id, str_replace("\'", "''", $query));
|
||||
$this->result = odbc_exec($this->db_connect_id, $query);
|
||||
|
||||
if( $this->result )
|
||||
{
|
||||
|
@ -168,7 +168,7 @@ class sql_db
|
|||
}
|
||||
else
|
||||
{
|
||||
$this->result = odbc_exec($this->db_connect_id, str_replace("\'", "''", $query));
|
||||
$this->result = odbc_exec($this->db_connect_id, $query);
|
||||
|
||||
if( $this->result )
|
||||
{
|
||||
|
|
|
@ -150,7 +150,7 @@ class sql_db
|
|||
}
|
||||
else if( eregi("^INSERT ", $query) )
|
||||
{
|
||||
if( mssql_query(str_replace("\'", "''", $query), $this->db_connect_id) )
|
||||
if( mssql_query($query, $this->db_connect_id) )
|
||||
{
|
||||
$this->result = time() + microtime();
|
||||
|
||||
|
@ -167,7 +167,7 @@ class sql_db
|
|||
}
|
||||
else
|
||||
{
|
||||
if( mssql_query(str_replace("\'", "''", $query), $this->db_connect_id) )
|
||||
if( mssql_query($query, $this->db_connect_id) )
|
||||
{
|
||||
$this->result = time() + microtime();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue