Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/java/fr/paris/lutece/portal/web/xsl/XslExportJspBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,10 @@ private String getXslExportData( HttpServletRequest request, XslExport xslExport
private String isValid( byte [ ] baXslSource )
{
String strError = null;

SAXParserFactory factory = SAXParserFactory.newInstance( );
try
{
SAXParserFactory factory = SAXParserFactory.newInstance( );
factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
SAXParser analyzer = factory.newSAXParser( );
InputSource is = new InputSource( new ByteArrayInputStream( baXslSource ) );
analyzer.getXMLReader( ).parse( is );
Expand Down