Changeset 5580 in josm
- Timestamp:
- 2012-11-13T22:48:12+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java
r5510 r5580 30 30 import org.xml.sax.Locator; 31 31 import org.xml.sax.SAXException; 32 import org.xml.sax.SAXNotRecognizedException; 33 import org.xml.sax.SAXNotSupportedException; 32 34 import org.xml.sax.SAXParseException; 33 35 import org.xml.sax.XMLReader; … … 292 294 XMLReader reader = saxParser.getXMLReader(); 293 295 reader.setContentHandler(contentHandler); 296 try { 297 // Do not load external DTDs (fix #8191) 298 reader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false); 299 } catch (SAXException e) { 300 // Exception very unlikely to happen, so no need to translate this 301 System.err.println("Cannot disable 'load-external-dtd' feature: "+e.getMessage()); 302 } 294 303 reader.parse(new InputSource(in)); 295 304 queueIterator = queue.iterator();
Note:
See TracChangeset
for help on using the changeset viewer.