mirror of
https://github.com/Qortal/qortal.git
synced 2025-05-22 17:37:00 +00:00
Update Service.java
Add qortal as valid extension for QCHAT_ATTACHMENT, needed when fetching a previous TX
This commit is contained in:
parent
867d0e29e0
commit
c977660c47
@ -37,7 +37,7 @@ public enum Service {
|
|||||||
if (files != null && files[0] != null) {
|
if (files != null && files[0] != null) {
|
||||||
final String extension = FilenameUtils.getExtension(files[0].getName()).toLowerCase();
|
final String extension = FilenameUtils.getExtension(files[0].getName()).toLowerCase();
|
||||||
// We must allow blank file extensions because these are used by data published from a plaintext or base64-encoded string
|
// We must allow blank file extensions because these are used by data published from a plaintext or base64-encoded string
|
||||||
final List<String> allowedExtensions = Arrays.asList("zip", "pdf", "txt", "odt", "ods", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "");
|
final List<String> allowedExtensions = Arrays.asList("qortal", "zip", "pdf", "txt", "odt", "ods", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "");
|
||||||
if (extension == null || !allowedExtensions.contains(extension)) {
|
if (extension == null || !allowedExtensions.contains(extension)) {
|
||||||
return ValidationResult.INVALID_FILE_EXTENSION;
|
return ValidationResult.INVALID_FILE_EXTENSION;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user