nextcloud/lib
Daniel Calviño Sánchez 0b96a71a68 Fix configuration values matched in user searches
Due to a misplaced closing parenthesis the condition of the left join
clause was just "userid = uid"; the other conditions were passed as
additional parameters to "leftJoin", and thus they were ignored.
Therefore, the result set contained every preference of each user
instead of only the email, so the "WHERE configvalue LIKE XXX" matched
any configuration value of the user.

Besides the closing parenthesis this commit also fixes the literal
values. Although "Literal" objects represent literal values they must be
created through "IExpressionBuilder::literal()" to be properly quoted;
otherwise it is just a plain string, which is treated as a column name.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-03-14 23:31:42 +01:00
..
composer Remove unused and deprecated class and interface AppHelper 2018-03-12 15:27:10 +01:00
l10n [tx-robot] updated from transifex 2018-03-13 01:12:01 +00:00
private Fix configuration values matched in user searches 2018-03-14 23:31:42 +01:00
public Use insertIfNotExist of the new interface 2018-03-12 17:45:49 +01:00
autoloader.php Make lib/autoloader.php strictly typed and properly type hinted 2018-02-13 22:07:58 +01:00
base.php Use proper method to log exceptions 2018-03-12 18:10:59 +01:00
versioncheck.php Raise PHP version number to PHP 7.0 2018-01-12 14:26:10 +01:00