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:
authorMorris Jobke <hey@morrisjobke.de>2018-01-29 18:13:51 +0300
committerGitHub <noreply@github.com>2018-01-29 18:13:51 +0300
commitd7273a72c0e2680871e6ac6ec0218b1e7bec7550 (patch)
tree0fc1b8a37ec241f9a2e916fbcc779cb1406b5e8f
parentf8fb4d98464254c037b330d4a17c9851b7bee823 (diff)
parentd043c1f09abecb73333b5d579069fac7cb8ac830 (diff)
Merge pull request #47 from umgfoin/umgfoin-fix-imapauth-postgresv14.0.0beta2v14.0.0beta1stable-swift-v3
Fix inappropriate SQL-quoting in imap.php
-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'];