aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/js
diff options
context:
space:
mode:
authorMarvin Borner2019-05-04 19:10:18 +0200
committerMarvin Borner2019-05-04 19:10:18 +0200
commitb7540fb2b1bbe016d23b8a7f3e7ab3edafb219c8 (patch)
treeda32ba6ac7467bc7d39f5209c7734ded79911260 /src/main/resources/js
parent04d0cb43f6a3ede1a61309cf17d78d189caa9dd4 (diff)
Fixed major security issues
Co-authored-by: LarsVomMars <lars@kroenner.eu>
Diffstat (limited to 'src/main/resources/js')
-rw-r--r--src/main/resources/js/files.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/resources/js/files.js b/src/main/resources/js/files.js
index 16b59cb..0102296 100644
--- a/src/main/resources/js/files.js
+++ b/src/main/resources/js/files.js
@@ -23,9 +23,7 @@ drop.addEventListener('drop', e => {
for (let i = 0; i < items.length; i++) {
const item = items[i].webkitGetAsEntry();
const file = items[i].getAsFile();
-
- // TODO: Consider using current date due to updated lastModified state at upload
- const date = new Date(file.lastModified);
+ const date = new Date();
const row = document.getElementById("table").insertRow(-1);
row.setAttribute("data-href", file.name);