summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortill <till@php.net>2008-03-25 00:59:01 +0000
committertill <till@php.net>2008-03-25 00:59:01 +0000
commit8f4dcbdc429cb2a295a311db7b3321236286df18 (patch)
treeca84456fec4e2dd92ecfce2be83276939587634d
parent0b17277eaeebdee278230d7cd2550a1a9e2fcf9f (diff)
* added escapeSimple() (#1484874)
-rw-r--r--program/include/rcube_mdb2.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/program/include/rcube_mdb2.inc b/program/include/rcube_mdb2.inc
index 98eaf7e43..15e55b039 100644
--- a/program/include/rcube_mdb2.inc
+++ b/program/include/rcube_mdb2.inc
@@ -429,6 +429,22 @@ class rcube_mdb2
return $this->db_handle->quoteIdentifier($str);
}
+ /**
+ * Escapes a string
+ *
+ * @param string The string to be escaped
+ * @return string The escaped string
+ * @access public
+ * @since 0.1.1
+ */
+ function escapeSimple($str)
+ {
+ if (!$this->db_handle)
+ $this->db_connect('r');
+
+ return $this->db_handle->escape($str);
+ }
+
/**
* Return SQL function for current time and date