nextcloud/lib/private
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
..
Accounts Use ::class statement instead of string 2018-01-29 12:03:47 +01:00
Activity Use $var[] = $a instead of array_push - 2x faster 2018-01-25 22:36:03 +01:00
App Remove unused and deprecated class and interface AppHelper 2018-03-12 15:27:10 +01:00
AppFramework OCP\AppFramework\App strict 2018-03-09 08:42:03 +01:00
Archive Use index based string access for substr with length of 1 2018-01-26 13:38:34 +01:00
Authentication Use ::class statement instead of string 2018-01-29 12:03:47 +01:00
BackgroundJob Update license headers 2017-11-06 16:56:19 +01:00
Cache Update license headers 2017-11-06 16:56:19 +01:00
Calendar implement CalendarManager 2017-11-09 15:14:50 +01:00
Collaboration Fix calculation if there are more results 2018-03-08 16:22:16 +01:00
Command Use ::class statement instead of string 2018-01-29 12:03:47 +01:00
Comments Use type casting instead of *val() method 2018-01-26 11:35:42 +01:00
Console Do not show "Not installed warning" during occ install 2018-01-18 14:55:32 +01:00
Contacts/ContactsMenu Remove unused import statements 2018-02-14 16:55:43 +01:00
DB Merge pull request #7419 from Abijeet/feature-7175 2018-03-06 21:53:37 +01:00
Diagnostics Update license headers 2017-11-06 16:56:19 +01:00
Encryption this was a migration step to ownCloud 8.0 to restructure the encryption folder which is no longer needed 2018-03-02 10:09:52 +01:00
Federation Make OCP\Federation strict 2018-01-16 19:25:08 +01:00
Files Merge pull request #8715 from nextcloud/objectstore-no-part-files 2018-03-08 20:52:16 +01:00
GlobalScale Update license headers 2017-11-06 16:56:19 +01:00
Group Use type casting instead of *val() method 2018-01-26 15:01:27 +01:00
Hooks Fix PHP doc for API docs 2017-12-03 12:02:29 +01:00
Http/Client adjust post body for new guzzle 2018-02-09 17:13:33 +01:00
IntegrityCheck Handle strict typing in Checker and fix tests 2018-02-21 21:09:08 +01:00
L10N Relax what t accepts so we don't break it all 2018-02-22 12:37:29 +01:00
Lock Made locking providers strict 2018-01-16 21:54:20 +01:00
Lockdown Update license headers 2017-11-06 16:56:19 +01:00
Log Use ::class statement instead of string 2018-01-29 12:03:47 +01:00
Mail Fix comments 2018-03-05 09:06:51 +01:00
Memcache Use ::class statement instead of string 2018-01-29 12:03:47 +01:00
Migration Update license headers 2017-11-06 16:56:19 +01:00
Notification Update license headers 2017-11-06 16:56:19 +01:00
OCS Add extra check so we don't error out on type 2018-01-16 22:06:57 +01:00
Preview Remove unneeded semicolon and parentheses 2018-01-26 23:46:40 +01:00
Remote Add some more tests for ocs remote api 2017-12-08 16:37:14 +01:00
Repair Don't use double quotes in MySQL queries 2018-02-16 15:03:12 +01:00
RichObjectStrings Update license headers 2017-11-06 16:56:19 +01:00
Route Use type casting instead of *val() method 2018-01-26 11:35:42 +01:00
Search Update license headers 2017-11-06 16:56:19 +01:00
Security Make \OC\Security\IdentityProof strict 2018-03-05 19:33:16 +01:00
Session Make ISession strict 2018-02-26 22:20:21 +01:00
Settings fix unit tests 2018-02-27 12:29:25 +01:00
Setup Remove unneeded semicolon and parentheses 2018-01-26 23:46:40 +01:00
Share Merge pull request #8335 from nextcloud/remove-unused-import 2018-02-14 22:23:07 +01:00
Share20 Merge pull request #8026 from nextcloud/feature/noid/allow-custom-html-in-html-emails 2018-02-26 13:38:39 +01:00
Support/CrashReport Fix PHP doc for API docs 2017-12-03 12:02:29 +01:00
SystemTag Make SystemTag strict 2018-02-21 22:08:27 +01:00
Tagging Use ::class statement instead of string 2018-01-29 12:03:47 +01:00
Template Actually clear cache values for all base urls 2018-03-07 15:09:43 +01:00
Updater Cache final result of update check 2017-12-18 21:48:58 +01:00
User Fix configuration values matched in user searches 2018-03-14 23:31:42 +01:00
legacy Use proper method to format absolute timestamp 2018-03-12 15:16:52 +01:00
AllConfig.php Remove IAppConfig::setValue 2018-01-17 21:41:57 +01:00
AppConfig.php using isset() 2018-02-05 10:50:32 +01:00
Avatar.php Use mb_* string methods to extract first character for generated avatars 2018-02-21 10:32:46 +01:00
AvatarManager.php Use \OC\User\Manager internally in the avatarmanager 2018-01-14 21:32:54 +01:00
CapabilitiesManager.php Properly log the full exception instead of only the message 2018-01-23 10:57:21 +01:00
Config.php Update license headers 2017-11-06 16:56:19 +01:00
ContactsManager.php Fix others 2016-07-21 18:13:57 +02:00
DatabaseException.php Remove unneeded parameter in DatabaseException 2017-07-24 13:44:12 +02:00
DatabaseSetupException.php Fix others 2016-07-21 18:13:57 +02:00
DateTimeFormatter.php Update license headers 2017-11-06 16:56:19 +01:00
DateTimeZone.php Fix others 2016-07-21 18:13:57 +02:00
ForbiddenException.php Fix others 2016-07-21 18:13:57 +02:00
HTTPHelper.php Fix others 2016-07-21 18:13:57 +02:00
HintException.php Update license headers 2017-11-06 16:56:19 +01:00
Installer.php Dont use $info as array when its not an array 2018-02-22 14:43:56 +01:00
LargeFileHelper.php Use type casting instead of *val() method 2018-01-26 11:35:42 +01:00
Log.php Loglevel is an int 2018-02-27 10:45:35 +01:00
NaturalSort.php Fix others 2016-07-21 18:13:57 +02:00
NaturalSort_DefaultCollator.php Fix others 2016-07-21 18:13:57 +02:00
NavigationManager.php Update phpDoc comments and add more type hinting 2018-02-15 10:38:25 +01:00
NeedsUpdateException.php Update with robin 2016-07-21 18:13:58 +02:00
NotSquareException.php Fix others 2016-07-21 18:13:57 +02:00
PreviewManager.php Use ::class statement instead of string 2018-01-29 12:03:47 +01:00
PreviewNotAvailableException.php Opening the trashbin causes errors in log for files without preview 2016-09-09 13:53:06 +02:00
RedisFactory.php Update license headers 2017-11-06 16:56:19 +01:00
Repair.php Remove unused import statements 2018-02-14 16:55:43 +01:00
RepairException.php Fix others 2016-07-21 18:13:57 +02:00
Search.php Removed deprecated search function from ISearch 2018-01-13 19:27:25 +01:00
Server.php Remove unused and deprecated class and interface AppHelper 2018-03-12 15:27:10 +01:00
ServerContainer.php Fix missing argument 2 for Settings classes 2017-05-19 22:32:50 +02:00
ServerNotAvailableException.php Fix others 2016-07-21 18:13:57 +02:00
ServiceUnavailableException.php Update with robin 2016-07-21 18:13:58 +02:00
Setup.php Correct mistaken regex wildcard in .htaccess 2018-02-28 13:50:54 +00:00
Streamer.php Revert "Always enable Zip64 extension for zipstreamer" 2017-06-09 10:21:26 +02:00
SubAdmin.php Simplify ternary operator statements 2018-01-26 12:36:25 +01:00
SystemConfig.php Merge pull request #7020 from Fiech/master 2017-11-07 10:27:53 +01:00
TagManager.php Fix others 2016-07-21 18:13:57 +02:00
Tags.php Use insertIfNotExist of the new interface 2018-03-12 17:45:49 +01:00
TempManager.php Update license headers 2017-11-06 16:56:19 +01:00
TemplateLayout.php Use JSCombiner from server container when searching for JS files 2018-03-07 15:09:43 +01:00
URLGenerator.php Fix check if theming defaults instance is available 2018-02-27 10:15:31 +01:00
Updater.php Remove OC_App::disable method 2018-03-06 10:45:20 +01:00