Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorumgfoin <umgfoin@users.noreply.github.com>2018-01-29 17:02:27 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-01-29 18:14:18 +0300
commite351592bc9a9fa6f3fbdd487c47b8d00b73ae9f1 (patch)
tree0fc1b8a37ec241f9a2e916fbcc779cb1406b5e8f
parentf8fb4d98464254c037b330d4a17c9851b7bee823 (diff)
External user-authentification against IMAP-gateways: Commit f8fb4d9 broke compatibility with PostgreSQL due to inappropriate SQL-quoting.
-rw-r--r--user_external/lib/imap.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/user_external/lib/imap.php b/user_external/lib/imap.php
index e53fb4605..046ba94c6 100644
--- a/user_external/lib/imap.php
+++ b/user_external/lib/imap.php
@@ -52,11 +52,11 @@ class OC_User_IMAP extends \OCA\user_external\Base {
$uid = str_replace("%40","@",$uid);
}
- $result = OC_DB::executeAudited(
- 'SELECT `userid` FROM `*PREFIX*preferences`'
- . ' WHERE `appid` = "settings" AND `configkey` = "email" AND `configvalue` = ?',
- array($uid)
- );
+ $result = OC_DB::executeAudited(
+ 'SELECT `userid` FROM `*PREFIX*preferences` WHERE `appid`=? AND `configkey`=? AND `configvalue`=?',
+ array('settings','email',$uid)
+ );
+
$users = array();
while ($row = $result->fetchRow()) {
$users[] = $row['userid'];