mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Double quote replace for slashed single quote
git-svn-id: file:///svn/phpbb/trunk@723 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
124929b507
commit
2b8667e728
1 changed files with 10 additions and 0 deletions
|
@ -38,6 +38,8 @@ class sql_db
|
||||||
var $row;
|
var $row;
|
||||||
var $num_queries = 0;
|
var $num_queries = 0;
|
||||||
|
|
||||||
|
var $query_array = array();
|
||||||
|
|
||||||
//
|
//
|
||||||
// Constructor
|
// Constructor
|
||||||
//
|
//
|
||||||
|
@ -143,6 +145,8 @@ class sql_db
|
||||||
$num_rows = $limits[2];
|
$num_rows = $limits[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// $this->query_array[] = $query;
|
||||||
|
|
||||||
@mssql_query("SET ROWCOUNT ".($row_offset + $num_rows));
|
@mssql_query("SET ROWCOUNT ".($row_offset + $num_rows));
|
||||||
|
|
||||||
$this->query_result = @mssql_query($query, $this->db_connect_id);
|
$this->query_result = @mssql_query($query, $this->db_connect_id);
|
||||||
|
@ -166,6 +170,10 @@ class sql_db
|
||||||
}
|
}
|
||||||
else if(eregi("^INSERT ", $query))
|
else if(eregi("^INSERT ", $query))
|
||||||
{
|
{
|
||||||
|
// $this->query_array[] = $query;
|
||||||
|
|
||||||
|
$query = preg_replace("/\\\'/s", "''", $query);
|
||||||
|
|
||||||
$this->query_result = @mssql_query($query, $this->db_connect_id);
|
$this->query_result = @mssql_query($query, $this->db_connect_id);
|
||||||
|
|
||||||
if($this->query_result)
|
if($this->query_result)
|
||||||
|
@ -188,6 +196,8 @@ class sql_db
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// $this->query_array[] = $query;
|
||||||
|
|
||||||
if(eregi("SELECT", $query))
|
if(eregi("SELECT", $query))
|
||||||
{
|
{
|
||||||
$this->query_result = @mssql_query($query, $this->db_connect_id);
|
$this->query_result = @mssql_query($query, $this->db_connect_id);
|
||||||
|
|
Loading…
Add table
Reference in a new issue