25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Revert "Escape 'family' field in SQL requests"

This reverts commit f51ba687e2.
Fixes #3072
This commit is contained in:
Evgeny Khramtsov 2019-10-30 09:11:13 +03:00
parent 72f6835feb
commit 3e5ab8082b

View File

@ -102,7 +102,7 @@ set_vcard(LUser, LServer, VCARD,
"!server_host=%(LServer)s",
"fn=%(FN)s",
"lfn=%(LFN)s",
"\"family\"=%(Family)s",
"family=%(Family)s",
"lfamily=%(LFamily)s",
"given=%(Given)s",
"lgiven=%(LGiven)s",
@ -136,7 +136,7 @@ search(LServer, Data, AllowReturnAll, MaxMatch) ->
end,
case catch ejabberd_sql:sql_query(
LServer,
[<<"select username, fn, \"family\", given, "
[<<"select username, fn, family, given, "
"middle, nickname, bday, ctry, "
"locality, email, orgname, orgunit "
"from vcard_search ">>,
@ -192,7 +192,7 @@ remove_user(LUser, LServer) ->
" where lusername=%(LUser)s and %(LServer)H"))
end).
export(_Server) ->
export(_Server) ->
[{vcard,
fun(Host, #vcard{us = {LUser, LServer}, vcard = VCARD})
when LServer == Host ->
@ -227,7 +227,7 @@ export(_Server) ->
"server_host=%(LServer)s",
"fn=%(FN)s",
"lfn=%(LFN)s",
"\"family\"=%(Family)s",
"family=%(Family)s",
"lfamily=%(LFamily)s",
"given=%(Given)s",
"lgiven=%(LGiven)s",