end,
LUser = jlib:nodeprep(User),
- LFN = stringprep:tolower(FN),
- LFamily = stringprep:tolower(Family),
- LGiven = stringprep:tolower(Given),
- LMiddle = stringprep:tolower(Middle),
- LNickname = stringprep:tolower(Nickname),
- LBDay = stringprep:tolower(BDay),
- LCTRY = stringprep:tolower(CTRY),
- LLocality = stringprep:tolower(Locality),
- LEMail = stringprep:tolower(EMail),
- LOrgName = stringprep:tolower(OrgName),
- LOrgUnit = stringprep:tolower(OrgUnit),
+ LFN = string:to_lower(FN),
+ LFamily = string:to_lower(Family),
+ LGiven = string:to_lower(Given),
+ LMiddle = string:to_lower(Middle),
+ LNickname = string:to_lower(Nickname),
+ LBDay = string:to_lower(BDay),
+ LCTRY = string:to_lower(CTRY),
+ LLocality = string:to_lower(Locality),
+ LEMail = string:to_lower(EMail),
+ LOrgName = string:to_lower(OrgName),
+ LOrgUnit = string:to_lower(OrgUnit),
US = {LUser, LServer},
Match;
filter_fields([{SVar, [Val]} | Ds], Match, LServer)
when is_list(Val) and (Val /= "") ->
- LVal = stringprep:tolower(Val),
+ LVal = string:to_lower(Val),
NewMatch = case SVar of
"user" ->
case gen_mod:get_module_opt(LServer, ?MODULE,
OrgUnit = xml:get_path_s(VCARD, [{elem, "ORG"}, {elem, "ORGUNIT"}, cdata]),
{LUser, _LServer} = US,
- LFN = stringprep:tolower(FN),
- LFamily = stringprep:tolower(Family),
- LGiven = stringprep:tolower(Given),
- LMiddle = stringprep:tolower(Middle),
- LNickname = stringprep:tolower(Nickname),
- LBDay = stringprep:tolower(BDay),
- LCTRY = stringprep:tolower(CTRY),
- LLocality = stringprep:tolower(Locality),
- LEMail = stringprep:tolower(EMail),
- LOrgName = stringprep:tolower(OrgName),
- LOrgUnit = stringprep:tolower(OrgUnit),
+ LFN = string:to_lower(FN),
+ LFamily = string:to_lower(Family),
+ LGiven = string:to_lower(Given),
+ LMiddle = string:to_lower(Middle),
+ LNickname = string:to_lower(Nickname),
+ LBDay = string:to_lower(BDay),
+ LCTRY = string:to_lower(CTRY),
+ LLocality = string:to_lower(Locality),
+ LEMail = string:to_lower(EMail),
+ LOrgName = string:to_lower(OrgName),
+ LOrgUnit = string:to_lower(OrgUnit),
if
(LUser == error) or
end,
LUser = jlib:nodeprep(User),
- LFN = stringprep:tolower(FN),
- LFamily = stringprep:tolower(Family),
- LGiven = stringprep:tolower(Given),
- LMiddle = stringprep:tolower(Middle),
- LNickname = stringprep:tolower(Nickname),
- LBDay = stringprep:tolower(BDay),
- LCTRY = stringprep:tolower(CTRY),
- LLocality = stringprep:tolower(Locality),
- LEMail = stringprep:tolower(EMail),
- LOrgName = stringprep:tolower(OrgName),
- LOrgUnit = stringprep:tolower(OrgUnit),
+ LFN = string:to_lower(FN),
+ LFamily = string:to_lower(Family),
+ LGiven = string:to_lower(Given),
+ LMiddle = string:to_lower(Middle),
+ LNickname = string:to_lower(Nickname),
+ LBDay = string:to_lower(BDay),
+ LCTRY = string:to_lower(CTRY),
+ LLocality = string:to_lower(Locality),
+ LEMail = string:to_lower(EMail),
+ LOrgName = string:to_lower(OrgName),
+ LOrgUnit = string:to_lower(OrgUnit),
if
(LUser == error) or
end;
filter_fields([{SVar, [Val]} | Ds], Match, LServer)
when is_list(Val) and (Val /= "") ->
- LVal = stringprep:tolower(Val),
+ LVal = string:to_lower(Val),
NewMatch = case SVar of
"user" -> make_val(Match, "lusername", LVal);
"fn" -> make_val(Match, "lfn", LVal);