summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2007-06-09 02:16:13 +0200
committerRick Ellis <rick.ellis@ellislab.com>2007-06-09 02:16:13 +0200
commitbb2041dc4e5a121de9321fbf87846b7358d59d39 (patch)
tree683ccdbb1911937902435f52ae43d15c695e18b4 /system/database
parentd885680948438cf59ad3d67820fb3ac2c6f7a8c6 (diff)
Diffstat (limited to 'system/database')
-rw-r--r--system/database/drivers/mysql/mysql_driver.php5
-rw-r--r--system/database/drivers/mysqli/mysqli_driver.php5
2 files changed, 0 insertions, 10 deletions
diff --git a/system/database/drivers/mysql/mysql_driver.php b/system/database/drivers/mysql/mysql_driver.php
index 367c2d11f..50f4ecfbf 100644
--- a/system/database/drivers/mysql/mysql_driver.php
+++ b/system/database/drivers/mysql/mysql_driver.php
@@ -222,11 +222,6 @@ class CI_DB_mysql_driver extends CI_DB {
*/
function escape_str($str)
{
- if (get_magic_quotes_gpc())
- {
- return $str;
- }
-
if (function_exists('mysql_real_escape_string'))
{
return mysql_real_escape_string($str, $this->conn_id);
diff --git a/system/database/drivers/mysqli/mysqli_driver.php b/system/database/drivers/mysqli/mysqli_driver.php
index 98e7f6c76..9cfc68ea6 100644
--- a/system/database/drivers/mysqli/mysqli_driver.php
+++ b/system/database/drivers/mysqli/mysqli_driver.php
@@ -225,11 +225,6 @@ class CI_DB_mysqli_driver extends CI_DB {
*/
function escape_str($str)
{
- if (get_magic_quotes_gpc())
- {
- return $str;
- }
-
return mysqli_real_escape_string($this->conn_id, $str);
}