diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-02 07:45:09 -0800 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-02 07:45:09 -0800 |
commit | c8cdc741fd8026d13f4f407b11d5b8eb4550fd2f (patch) | |
tree | 576b9cb13d274c7b743d1bc09c8a51c09b30ef2e | |
parent | 37295deeb70f45bad188bf4eae81db51d19be8c2 (diff) | |
parent | dbb9b68331e9d1a2104a5e969b47bc893d232c1f (diff) | |
download | nextcloud-server-c8cdc741fd8026d13f4f407b11d5b8eb4550fd2f.tar.gz nextcloud-server-c8cdc741fd8026d13f4f407b11d5b8eb4550fd2f.zip |
Merge pull request #2033 from eMerzh/fix_ldap_quoting
Fix quoting of query for user_ldap ref #1983
-rw-r--r-- | apps/user_ldap/lib/helper.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/helper.php b/apps/user_ldap/lib/helper.php index 45c379445af..308da3ef724 100644 --- a/apps/user_ldap/lib/helper.php +++ b/apps/user_ldap/lib/helper.php @@ -54,7 +54,7 @@ class Helper { WHERE `configkey` LIKE ? '; if($activeConfigurations) { - $query .= ' AND `configvalue` = 1'; + $query .= ' AND `configvalue` = \'1\''; } $query = \OCP\DB::prepare($query); @@ -86,8 +86,8 @@ class Helper { DELETE FROM `*PREFIX*appconfig` WHERE `configkey` LIKE ? - AND `appid` = "user_ldap" - AND `configkey` NOT IN ("enabled", "installed_version", "types", "bgjUpdateGroupsLastRun") + AND `appid` = \'user_ldap\' + AND `configkey` NOT IN (\'enabled\', \'installed_version\', \'types\', \'bgjUpdateGroupsLastRun\') '); $res = $query->execute(array($prefix.'%')); |