mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +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 $num_queries = 0;
|
||||
|
||||
var $query_array = array();
|
||||
|
||||
//
|
||||
// Constructor
|
||||
//
|
||||
|
@ -143,6 +145,8 @@ class sql_db
|
|||
$num_rows = $limits[2];
|
||||
}
|
||||
|
||||
// $this->query_array[] = $query;
|
||||
|
||||
@mssql_query("SET ROWCOUNT ".($row_offset + $num_rows));
|
||||
|
||||
$this->query_result = @mssql_query($query, $this->db_connect_id);
|
||||
|
@ -166,6 +170,10 @@ class sql_db
|
|||
}
|
||||
else if(eregi("^INSERT ", $query))
|
||||
{
|
||||
// $this->query_array[] = $query;
|
||||
|
||||
$query = preg_replace("/\\\'/s", "''", $query);
|
||||
|
||||
$this->query_result = @mssql_query($query, $this->db_connect_id);
|
||||
|
||||
if($this->query_result)
|
||||
|
@ -188,6 +196,8 @@ class sql_db
|
|||
}
|
||||
else
|
||||
{
|
||||
// $this->query_array[] = $query;
|
||||
|
||||
if(eregi("SELECT", $query))
|
||||
{
|
||||
$this->query_result = @mssql_query($query, $this->db_connect_id);
|
||||
|
|
Loading…
Add table
Reference in a new issue