diff options
| author | till <till@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-03-25 00:59:01 +0000 |
|---|---|---|
| committer | till <till@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-03-25 00:59:01 +0000 |
| commit | 95a6fd7f01f6bc3ef14f70cae20a34e0b2300d84 (patch) | |
| tree | 0b397aa03150c6d3fa14f56de2d4f835524ea86f | |
| parent | 297e177add7f9b22fe9bdee902e17dadfb0d6507 (diff) | |
* added escapeSimple() (#1484874)
git-svn-id: https://svn.roundcube.net/trunk@1215 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/include/rcube_mdb2.inc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_mdb2.inc b/roundcubemail/program/include/rcube_mdb2.inc index 98eaf7e43..15e55b039 100644 --- a/roundcubemail/program/include/rcube_mdb2.inc +++ b/roundcubemail/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 |
