Skip to content

Commit

Permalink
fix: upload authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
vcheckzen authored Oct 23, 2024
1 parent 7035e5f commit 382e6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion back-end-cf/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function handleRequest(request) {
// Upload files
if (requestUrl.searchParams.has('upload')) {
const allowUpload = (await downloadFile(`${requestPath}/.upload`)).status === 302;
await authenticate();
await authenticate(requestPath, body.passwd);
const uploadAttack =
!allowUpload ||
body.files.some(
Expand Down

0 comments on commit 382e6c9

Please sign in to comment.