v1.3.55: validate zip magic bytes on upload (UI + backend)

This commit is contained in:
“Naeel”
2026-05-04 10:57:32 +04:00
parent 4980eb4efa
commit d09348b6b9
4 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -102,7 +102,7 @@
<div class="nubes">NUBES</div>
<div class="product">FISSION CONSOLE</div>
</div>
<div style="font-size:0.65rem; color:var(--text-secondary); margin-left:10px; align-self:center; opacity:0.7;">v1.3.54</div>
<div style="font-size:0.65rem; color:var(--text-secondary); margin-left:10px; align-self:center; opacity:0.7;">v1.3.55</div>
</div>
<div class="row" style="margin:0;">
<button class="btn ghost" onclick="reloadAll()">Refresh</button>
@@ -462,7 +462,7 @@
</div>
<div class="actions" style="justify-content:space-between; align-items:center;">
<span style="font-size:0.75rem; color:var(--text-secondary);">v1.3.54</span>
<span style="font-size:0.75rem; color:var(--text-secondary);">v1.3.55</span>
<button class="btn ghost" onclick="closeHelp()">Закрыть</button>
</div>
</div>
+1
View File
@@ -42,6 +42,7 @@ async function submitCreateArchive() {
if (!lang) throw new Error('language is required');
const archiveFile = document.getElementById('ca-archive-file').files[0];
if (!archiveFile) throw new Error('выберите .zip архив');
if (!archiveFile.name.toLowerCase().endsWith('.zip')) throw new Error('файл должен быть .zip архивом, не .' + archiveFile.name.split('.').pop());
var fd = new FormData();
fd.append('name', name);