1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 14:02:06 +01:00

Escape filename so the Smack connection doesn't crash. SMACK-159

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@4547 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Alex Wenckus 2006-07-18 17:01:54 +00:00 committed by alex
parent 9895123ff3
commit 9ade8ac8cd

View file

@ -339,7 +339,7 @@ public class StreamInitiation extends IQ {
.append(getNamespace()).append("\" ");
if (getName() != null) {
buffer.append("name=\"").append(getName()).append("\" ");
buffer.append("name=\"").append(StringUtils.escapeForXML(getName())).append("\" ");
}
if (getSize() > 0) {