From e99cf1c707bd57da06865c28ea3e705f17ae7bdf Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 27 Mar 2005 18:16:04 +0000 Subject: [PATCH] Only use ISSO::db::escape_string() when we have binary data, otherwise it'll escape new line and carriage return characters. --- kernel.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel.php b/kernel.php index 11c159b..5d7755b 100644 --- a/kernel.php +++ b/kernel.php @@ -430,13 +430,13 @@ class Shared_Object_Framework * * @return str String that has slashes added */ - function escape($str) + function escape($str, $binary = false) { global $_isso; if ($this->magicquotes) { - if (isset($_isso->db)) + if (isset($_isso->db) AND $binary) { if (is_resource($_isso->db->link_id)) { @@ -447,7 +447,7 @@ class Shared_Object_Framework } else { - if (isset($_isso->db)) + if (isset($_isso->db) AND $binary) { if (is_resource($_isso->db->link_id)) { -- 2.43.5