mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Sanitize copy-pasted get_statustag/1
This commit is contained in:
parent
9c37450fe4
commit
b7a542e074
@ -2358,11 +2358,7 @@ get_showtag(Presence) ->
|
|||||||
|
|
||||||
get_statustag(undefined) -> <<"">>;
|
get_statustag(undefined) -> <<"">>;
|
||||||
get_statustag(Presence) ->
|
get_statustag(Presence) ->
|
||||||
case xml:get_path_s(Presence,
|
xml:get_path_s(Presence, [{elem, <<"status">>}, cdata]).
|
||||||
[{elem, <<"status">>}, cdata])
|
|
||||||
of
|
|
||||||
ShowTag -> ShowTag
|
|
||||||
end.
|
|
||||||
|
|
||||||
process_unauthenticated_stanza(StateData, El) ->
|
process_unauthenticated_stanza(StateData, El) ->
|
||||||
NewEl = case xml:get_tag_attr_s(<<"xml:lang">>, El) of
|
NewEl = case xml:get_tag_attr_s(<<"xml:lang">>, El) of
|
||||||
|
Loading…
Reference in New Issue
Block a user