]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix quoting of query for user_ldap ref #1983
authorBrice Maron <brice@bmaron.net>
Sat, 2 Mar 2013 15:26:15 +0000 (16:26 +0100)
committerBrice Maron <brice@bmaron.net>
Sat, 2 Mar 2013 15:26:15 +0000 (16:26 +0100)
apps/user_ldap/lib/helper.php

index 45c379445af5c2c7bd3145df75ab895a629c4eae..308da3ef724237c280083ad1f0811e60c7bb3c8e 100644 (file)
@@ -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.'%'));