summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_db_oracle.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-03-12 09:44:31 +0100
committerAleksander Machniak <alec@alec.pl>2015-03-12 09:44:31 +0100
commit496972bf95e2ddbf01cb5e50a6a594615744d942 (patch)
treec5ab5fad64f6655b4a35d8868e8b6fdf58012108 /program/lib/Roundcube/rcube_db_oracle.php
parent22409b88c513bc4dc5c87b3dfe0a4f0915229b37 (diff)
Fix backtick character handling in sql queries (#1490312)
Diffstat (limited to 'program/lib/Roundcube/rcube_db_oracle.php')
-rw-r--r--program/lib/Roundcube/rcube_db_oracle.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_db_oracle.php b/program/lib/Roundcube/rcube_db_oracle.php
index 34e4e69f8..bb033884c 100644
--- a/program/lib/Roundcube/rcube_db_oracle.php
+++ b/program/lib/Roundcube/rcube_db_oracle.php
@@ -155,10 +155,15 @@ class rcube_db_oracle extends rcube_db
}
}
- // replace escaped '?' back to normal, see self::quote()
- $query = str_replace('??', '?', $query);
$query = rtrim($query, " \t\n\r\0\x0B;");
+ // replace escaped '?' and quotes back to normal, see self::quote()
+ $query = str_replace(
+ array('??', self::DEFAULT_QUOTE.self::DEFAULT_QUOTE),
+ array('?', self::DEFAULT_QUOTE),
+ $query
+ );
+
// log query
$this->debug($query);