lib/Auth
Aleksander Machniak
machniak at kolabsys.com
Wed Nov 26 09:48:54 CET 2014
lib/Auth/LDAP.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 52968d042a5ea629a37bfd31983bf2bdc0752b17
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Wed Nov 26 09:48:02 2014 +0100
Fixed quoting in SQL query for Oracle (#3987)
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.
More information about the commits
mailing list