diff options
author | jfd <jfd@underverse> | 2012-07-30 20:46:14 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-07-31 18:53:05 +0200 |
commit | ede464f05872574a703c36d8d976b5c97e55c23f (patch) | |
tree | c075f46d52b905a93cb5d3137af5198de83d34f2 /apps/user_openid | |
parent | 3c5670b662ea9e5ee36146f10f63faaadacb8187 (diff) | |
download | nextcloud-server-ede464f05872574a703c36d8d976b5c97e55c23f.tar.gz nextcloud-server-ede464f05872574a703c36d8d976b5c97e55c23f.zip |
escape all identifiers with backticks
Diffstat (limited to 'apps/user_openid')
-rw-r--r-- | apps/user_openid/user_openid.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_openid/user_openid.php b/apps/user_openid/user_openid.php index 3267db3fa0f..8fb694f75c6 100644 --- a/apps/user_openid/user_openid.php +++ b/apps/user_openid/user_openid.php @@ -54,7 +54,7 @@ class OC_USER_OPENID extends OC_User_Backend { * find the user that can be authenticated with an openid identity */ public static function findUserForIdentity($identity){ - $query=OCP\DB::prepare('SELECT userid FROM *PREFIX*preferences WHERE appid=? AND configkey=? AND configvalue=?'); + $query=OCP\DB::prepare('SELECT `userid` FROM `*PREFIX*preferences` WHERE `appid`=? AND `configkey`=? AND `configvalue`=?'); $result=$query->execute(array('user_openid','identity',$identity))->fetchAll(); if(count($result)>0){ return $result[0]['userid']; |