From b1e9fdf334b65163fc3f6a942b3402582ea0fccd Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 24 Dec 2005 23:06:51 +0000 Subject: [PATCH] ISSO->escape() now uses the new DB stuff --- kernel.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/kernel.php b/kernel.php index ba7d4a5..ff4f557 100644 --- a/kernel.php +++ b/kernel.php @@ -643,23 +643,17 @@ class Shared_Object_Framework { if ($this->magicquotes AND !$force) { - if (isset($this->db) AND $binary) + if (isset($this->modules[ISSO_DB_LAYER]) AND $binary) { - if (is_resource($this->db->link_id)) - { - return $this->db->escape_string(str_replace(array("\'", '\"'), array("'", '"'), $str)); - } + return $this->modules[ISSO_DB_LAYER]->escape_string(str_replace(array("\'", '\"'), array("'", '"'), $str)); } return $str; } else { - if (isset($this->db) AND $binary) + if (isset($this->modules[ISSO_DB_LAYER]) AND $binary) { - if (is_resource($this->db->link_id)) - { - return $this->db->escape_string($str); - } + return $this->modules[ISSO_DB_LAYER]->escape_string($str); } return addslashes($str); } -- 2.43.5