File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/main/java/org/owasp/esapi/reference Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -99,14 +99,18 @@ public static Encoder getInstance() {
9999
100100
101101 /**
102- * Instantiates a new DefaultEncoder
102+ * Instantiates a new {@code DefaultEncoder} based on the property {@code Encoder.DefaultCodecList}
103+ * from the {@code ESAPI.properties} file.
103104 */
104105 private DefaultEncoder () {
105- codecs .add ( htmlCodec );
106- codecs .add ( percentCodec );
107- codecs .add ( javaScriptCodec );
106+ this ( ESAPI .securityConfiguration ().getDefaultCanonicalizationCodecs () );
108107 }
109108
109+ /**
110+ * Instantiates a new {@code DefaultEncoder} based on the specified list of
111+ * codec names. Unqualified codec names are assumed to belong to the package
112+ * "org.owasp.esapi.codecs".
113+ */
110114 public DefaultEncoder ( List <String > codecNames ) {
111115 for ( String clazz : codecNames ) {
112116 try {
You can’t perform that action at this time.
0 commit comments