From 420b21f0b14e7508354708265ce0b85064b2c00c Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 18 Dec 2005 07:25:24 +0000 Subject: [PATCH] stripslashes() is evil; use str_replace() instead --- kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel.php b/kernel.php index 69a678e..e3337d3 100644 --- a/kernel.php +++ b/kernel.php @@ -658,7 +658,7 @@ class Shared_Object_Framework { if (is_resource($this->db->link_id)) { - return $this->db->escape_string(stripslashes($str)); + return $this->db->escape_string(str_replace(array("\'", '\"'), array("'", '"'), $str)); } } return $str; -- 2.43.5