Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
🛡️ Security: Solve security issue
Browse files Browse the repository at this point in the history
This commit corrects a vulnerability discovered by CodeQL.
The vulnerability could allow a malicious user to execute arbitrary code server-side.
  • Loading branch information
NotFenixio authored Nov 21, 2023
1 parent ab9cd38 commit 5c748b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/feedback/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export const actions = {
const data = await request.formData();
const feedback = data.get('feedback');

console.log(feedback?.toString().replace("\n", " "));
console.log(feedback?.toString().replace(/\n/g, " "));
}
} satisfies Actions
} satisfies Actions

0 comments on commit 5c748b9

Please sign in to comment.