Skip to content

Commit 00edf71

Browse files
committed
change exception type and test cases label
1 parent 4991dd5 commit 00edf71

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

source/java/src/org/lucee/extension/guard/functions/GuardEncode.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@
1818
**/
1919
package org.lucee.extension.guard.functions;
2020

21-
import java.io.UnsupportedEncodingException;
22-
2321
import org.lucee.extension.guard.util.Canonicalize;
2422
import org.owasp.encoder.Encode;
2523

26-
import lucee.loader.engine.CFMLEngineFactory;
2724
import lucee.runtime.PageContext;
2825
import lucee.runtime.exp.PageException;
2926

@@ -213,12 +210,7 @@ public static String canonicalize(String input, boolean restrictMultiple, boolea
213210
boolean throwOnError) throws PageException {
214211
if (eng.getStringUtil().isEmpty(input))
215212
return input;
216-
try {
217-
return Canonicalize.canonicalize(input, throwOnError);
218-
} catch (UnsupportedEncodingException e) {
219-
throw CFMLEngineFactory.getInstance().getCastUtil().toPageException(e);
220-
}
221-
213+
return Canonicalize.canonicalize(input, throwOnError);
222214
}
223215

224216
@Override

0 commit comments

Comments
 (0)