mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-27 00:32:07 +01:00
Smack now escapes passwords.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3470 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
4c45715780
commit
665bf172f7
1 changed files with 5 additions and 5 deletions
|
@ -38,7 +38,7 @@ public class Authentication extends IQ {
|
|||
* "set" mode in order to perform an actual authentication with the server.
|
||||
* In order to send a "get" request to get the available authentication
|
||||
* modes back from the server, change the type of the IQ packet to "get":
|
||||
*
|
||||
* <p/>
|
||||
* <p><tt>setType(IQ.Type.GET);</tt>
|
||||
*/
|
||||
public Authentication() {
|
||||
|
@ -169,7 +169,7 @@ public class Authentication extends IQ {
|
|||
buf.append("<password/>");
|
||||
}
|
||||
else {
|
||||
buf.append("<password>").append(password).append("</password>");
|
||||
buf.append("<password>").append(StringUtils.escapeForXML(password)).append("</password>");
|
||||
}
|
||||
}
|
||||
if (resource != null) {
|
||||
|
|
Loading…
Reference in a new issue