aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/protocol/media
diff options
context:
space:
mode:
authorBoris Grozev <boris@jitsi.org>2014-12-12 15:49:22 +0200
committerBoris Grozev <boris@jitsi.org>2014-12-29 14:31:33 +0200
commitf84e32af3dbecc61f38ebc65214eb75d4b1711e7 (patch)
tree74e75758b506058a3fb2dba6ef4aa82fd3c23e3d /src/net/java/sip/communicator/service/protocol/media
parent261d985f1b78fa68804f8f2949698ddb7769555c (diff)
downloadjitsi-f84e32af3dbecc61f38ebc65214eb75d4b1711e7.zip
jitsi-f84e32af3dbecc61f38ebc65214eb75d4b1711e7.tar.gz
jitsi-f84e32af3dbecc61f38ebc65214eb75d4b1711e7.tar.bz2
Uses the XMLUtils.newDocumentBuilderFactory() method to obtain
DocumentBuilderFactories in order to have external entities and doctype declarations disabled while parsing.
Diffstat (limited to 'src/net/java/sip/communicator/service/protocol/media')
-rw-r--r--src/net/java/sip/communicator/service/protocol/media/ConferenceInfoDocument.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/media/ConferenceInfoDocument.java b/src/net/java/sip/communicator/service/protocol/media/ConferenceInfoDocument.java
index 2641fce..653dc71 100644
--- a/src/net/java/sip/communicator/service/protocol/media/ConferenceInfoDocument.java
+++ b/src/net/java/sip/communicator/service/protocol/media/ConferenceInfoDocument.java
@@ -225,8 +225,8 @@ public class ConferenceInfoDocument
try
{
document
- = DocumentBuilderFactory.newInstance().newDocumentBuilder()
- .parse(new ByteArrayInputStream(bytes));
+ = XMLUtils.newDocumentBuilderFactory().newDocumentBuilder()
+ .parse(new ByteArrayInputStream(bytes));
}
catch (Exception e)
{
@@ -401,9 +401,6 @@ public class ConferenceInfoDocument
* This is not part of RFC4575 and is here because we are temporarily using
* it in our XMPP implementation.
* TODO: remote it when we define another way to handle the Jingle SID
- *
- * @param sid the value to set the <tt>sid</tt> attribute of the
- * <tt>conference-info</tt> element to.
*/
public String getSid()
{