summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-11-26 08:48:02 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-11-26 08:48:02 (GMT)
commit52968d042a5ea629a37bfd31983bf2bdc0752b17 (patch)
tree51007f86121608bd7ba371d4702135e582b30a58
parentaf0e041e8f425dd3ba3e7cf1c088ce937d172065 (diff)
downloadkolab-wap-52968d042a5ea629a37bfd31983bf2bdc0752b17.tar.gz
Fixed quoting in SQL query for Oracle (#3987)
-rw-r--r--lib/Auth/LDAP.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index eab0b32..7a61524 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -1151,7 +1151,7 @@ class LDAP extends Net_LDAP3 {
{
if ($typeid) {
$db = SQL::get_instance();
- $query = $db->query("SELECT " . $db->quote_identifier('key') . " FROM {$type}_types WHERE id = ?", array($typeid));
+ $query = $db->query("SELECT `key` FROM `{$type}_types` WHERE `id` = ?", array($typeid));
$sql = $db->fetch_assoc($query);
// Check if the type has a specific base DN specified.