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
1 changed files with 1 additions and 1 deletions

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) {