File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
server/src/main/java/password/pwm/util/java Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 31
31
import password .pwm .error .PwmError ;
32
32
import password .pwm .error .PwmUnrecoverableException ;
33
33
34
+ import javax .xml .XMLConstants ;
34
35
import javax .xml .parsers .DocumentBuilder ;
35
36
import javax .xml .parsers .DocumentBuilderFactory ;
36
37
import javax .xml .parsers .ParserConfigurationException ;
@@ -217,7 +218,8 @@ static DocumentBuilder getBuilder()
217
218
try
218
219
{
219
220
final DocumentBuilderFactory dbFactory = DocumentBuilderFactory .newInstance ();
220
- dbFactory .setFeature ( "http://apache.org/xml/features/disallow-doctype-decl" , false );
221
+ dbFactory .setFeature ( XMLConstants .FEATURE_SECURE_PROCESSING , true );
222
+ dbFactory .setFeature ( "http://apache.org/xml/features/disallow-doctype-decl" , true );
221
223
dbFactory .setExpandEntityReferences ( false );
222
224
dbFactory .setValidating ( false );
223
225
dbFactory .setXIncludeAware ( false );
You can’t perform that action at this time.
0 commit comments