diff options
author | HAMANO Tsukasa <hamano@cuspy.org> | 2014-03-07 16:34:20 +0900 |
---|---|---|
committer | HAMANO Tsukasa <hamano@cuspy.org> | 2014-03-07 16:34:20 +0900 |
commit | df8053dae363b63eb55614c2c867119c3089e5e0 (patch) | |
tree | a485be1e41dfdb08b13467382eac4834f94e7aff | |
parent | Merge pull request #84 from cstar/patch-1 (diff) |
need xmlescape for password
-rw-r--r-- | src/ejabberd_piefxis.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_piefxis.erl b/src/ejabberd_piefxis.erl index b193dc67c..12604ba5e 100644 --- a/src/ejabberd_piefxis.erl +++ b/src/ejabberd_piefxis.erl @@ -570,7 +570,7 @@ build_password_string({StoredKey, ServerKey, Salt, IterationCount}) -> base64:encode_to_string(Salt), IterationCount]); build_password_string(Password) when is_list(Password) -> - io_lib:format("password-format='plaintext' password='~s'>", [Password]). + io_lib:format("password-format='plaintext' password='~s'>", [exmpp_xml:escape_using_entities(Password)]). %% @spec (InfoName::atom(), Username::string(), Host::string()) -> string() extract_user_info(roster, Username, Host) -> |