Fix quoting of query for user_ldap ref #1983
This commit is contained in:
parent
d3e88e6a8c
commit
dbb9b68331
|
@ -54,7 +54,7 @@ class Helper {
|
||||||
WHERE `configkey` LIKE ?
|
WHERE `configkey` LIKE ?
|
||||||
';
|
';
|
||||||
if($activeConfigurations) {
|
if($activeConfigurations) {
|
||||||
$query .= ' AND `configvalue` = 1';
|
$query .= ' AND `configvalue` = \'1\'';
|
||||||
}
|
}
|
||||||
$query = \OCP\DB::prepare($query);
|
$query = \OCP\DB::prepare($query);
|
||||||
|
|
||||||
|
@ -86,8 +86,8 @@ class Helper {
|
||||||
DELETE
|
DELETE
|
||||||
FROM `*PREFIX*appconfig`
|
FROM `*PREFIX*appconfig`
|
||||||
WHERE `configkey` LIKE ?
|
WHERE `configkey` LIKE ?
|
||||||
AND `appid` = "user_ldap"
|
AND `appid` = \'user_ldap\'
|
||||||
AND `configkey` NOT IN ("enabled", "installed_version", "types", "bgjUpdateGroupsLastRun")
|
AND `configkey` NOT IN (\'enabled\', \'installed_version\', \'types\', \'bgjUpdateGroupsLastRun\')
|
||||||
');
|
');
|
||||||
$res = $query->execute(array($prefix.'%'));
|
$res = $query->execute(array($prefix.'%'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue