Skip to content

Commit b8c48a9

Browse files
committed
Make conversion from String array to String explicit for exception message.
1 parent 1531303 commit b8c48a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/owasp/esapi/reference/DefaultValidator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.net.URI;
2424
import java.net.URISyntaxException;
2525
import java.text.DateFormat;
26+
import java.util.Arrays;
2627
import java.util.ArrayList;
2728
import java.util.Date;
2829
import java.util.HashMap;
@@ -764,7 +765,7 @@ public boolean isValidFileContent(String context, byte[] input, int maxBytes, bo
764765
public byte[] getValidFileContent(String context, byte[] input, int maxBytes, boolean allowNull) throws ValidationException, IntrusionException {
765766
if (isEmpty(input)) {
766767
if (allowNull) return null;
767-
throw new ValidationException( context + ": Input required", "Input required: context=" + context + ", input=" + input, context );
768+
throw new ValidationException( context + ": Input required", "Input required: context=" + context + ", input=" + Arrays.toString(input), context );
768769
}
769770

770771
long esapiMaxBytes = ESAPI.securityConfiguration().getAllowedFileUploadSize();

0 commit comments

Comments
 (0)