Merge pull request #2033 from eMerzh/fix_ldap_quoting

Fix quoting of query for user_ldap ref #1983
This commit is contained in:
Bernhard Posselt 2013-03-02 07:45:09 -08:00
commit c8cdc741fd
1 changed files with 3 additions and 3 deletions

View 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.'%'));