We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b78ce5b commit 2b83da6Copy full SHA for 2b83da6
src/main/java/ru/mystamps/web/feature/series/HttpURLConnectionDownloaderService.java
@@ -174,7 +174,7 @@ private Code validateConnection(HttpURLConnection conn) throws IOException {
174
// We need only the first part from "text/html; charset=UTF-8"
175
contentType = StringUtils.substringBefore(contentType, ";");
176
177
- if (allowedContentTypes != null && !ArrayUtils.contains(allowedContentTypes, contentType)) {
+ if (!ArrayUtils.contains(allowedContentTypes, contentType)) {
178
// FIXME(security): fix possible log injection
179
LOG.debug("Couldn't download file: unsupported file type '{}'", contentType);
180
return Code.INVALID_FILE_TYPE;
0 commit comments