From e5ce40ef33b49419cd4bf79baccf2b223ea91646 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 5 May 2005 03:14:36 +0000 Subject: [PATCH] r87: Replaced all instances of addslasheslike() with bugsys::escape() --- includes/functions_datastore.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/includes/functions_datastore.php b/includes/functions_datastore.php index 706f081..129cba3 100755 --- a/includes/functions_datastore.php +++ b/includes/functions_datastore.php @@ -24,7 +24,7 @@ function build_languages() $bugsys->db->query(" ### replacing the language cache ### REPLACE INTO " . TABLE_PREFIX . "datastore (title, data) - VALUES ('language', '" . addslasheslike(serialize($tempstore)) . "')" + VALUES ('language', '" . $bugsys->escape(serialize($tempstore)) . "')" ); $bugsys->datastore['language'] = $tempstore; @@ -44,7 +44,7 @@ function build_settings() $bugsys->db->query(" ### replacing the setting cache ### REPLACE INTO " . TABLE_PREFIX . "datastore (title, data) - VALUES ('setting', '" . addslasheslike(serialize($options)) . "')" + VALUES ('setting', '" . $bugsys->escape(serialize($options)) . "')" ); $bugsys->datastore['setting'] = $options; @@ -64,7 +64,7 @@ function build_usergroups() $bugsys->db->query(" ### replacing usergroup cache ### REPLACE INTO " . TABLE_PREFIX . "datastore (title, data) - VALUES ('usergroup', '" . addslasheslike(serialize($groups)) . "')" + VALUES ('usergroup', '" . $bugsys->escape(serialize($groups)) . "')" ); $bugsys->datastore['usergroup'] = $groups; @@ -84,7 +84,7 @@ function build_statuses() $bugsys->db->query(" ### replacing status cache ### REPLACE INTO " . TABLE_PREFIX . "datastore (title, data) - VALUES ('status', '" . addslasheslike(serialize($tempstore)) . "')" + VALUES ('status', '" . $bugsys->escape(serialize($tempstore)) . "')" ); $bugsys->datastore['status'] = $tempstore; @@ -104,7 +104,7 @@ function build_severities() $bugsys->db->query(" ### replacing severity cache ### REPLACE INTO " . TABLE_PREFIX . "datastore (title, data) - VALUES ('severity', '" . addslasheslike(serialize($tempstore)) . "')" + VALUES ('severity', '" . $bugsys->escape(serialize($tempstore)) . "')" ); $bugsys->datastore['severity'] = $tempstore; @@ -124,7 +124,7 @@ function build_priorities() $bugsys->db->query(" ### replacing priority cache ### REPLACE INTO " . TABLE_PREFIX . "datastore (title, data) - VALUES ('priority', '" . addslasheslike(serialize($tempstore)) . "')" + VALUES ('priority', '" . $bugsys->escape(serialize($tempstore)) . "')" ); $bugsys->datastore['priority'] = $tempstore; @@ -150,7 +150,7 @@ function build_assignedto() $bugsys->db->query(" ### replacing developer / assign to cache ### REPLACE INTO " . TABLE_PREFIX . "datastore (title, data) - VALUES ('assignto', '" . addslasheslike(serialize($devs)) . "')" + VALUES ('assignto', '" . $bugsys->escape(serialize($devs)) . "')" ); $bugsys->datastore['assignto'] = $devs; @@ -170,7 +170,7 @@ function build_resolutions() $bugsys->db->query(" ### replacing resolution cache ### REPLACE INTO " . TABLE_PREFIX . "datastore (title, data) - VALUES ('resolution', '" . addslasheslike(serialize($tempstore)) . "')" + VALUES ('resolution', '" . $bugsys->escape(serialize($tempstore)) . "')" ); $bugsys->datastore['resolution'] = $tempstore; @@ -190,7 +190,7 @@ function build_versions() $bugsys->db->query(" ### replacing version cache ### REPLACE INTO " . TABLE_PREFIX . "datastore (title, data) - VALUES ('version', '" . addslasheslike(serialize($tempstore)) . "')" + VALUES ('version', '" . $bugsys->escape(serialize($tempstore)) . "')" ); $bugsys->datastore['version'] = $tempstore; @@ -210,7 +210,7 @@ function build_products() $bugsys->db->query(" ### replacing product / component cache ### REPLACE INTO " . TABLE_PREFIX . "datastore (title, data) - VALUES ('product', '" . addslasheslike(serialize($tempstore)) . "')" + VALUES ('product', '" . $bugsys->escape(serialize($tempstore)) . "')" ); $bugsys->datastore['product'] = $tempstore; @@ -230,7 +230,7 @@ function build_templatesets() $bugsys->db->query(" ### replacing the template set cache ### REPLACE INTO " . TABLE_PREFIX . "datastore (title, data) - VALUES ('templateset', '" . addslasheslike(serialize($tempstore)) . "')" + VALUES ('templateset', '" . $bugsys->escape(serialize($tempstore)) . "')" ); $bugsys->datastore['templateset'] = $tempstore; -- 2.22.5