Skip to content
Snippets Groups Projects
Unverified Commit 7b14b39d authored by Nicolas Giard's avatar Nicolas Giard Committed by GitHub
Browse files

fix: prevent upload bypass via uppercase path

parent cab16ee8
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ module.exports = {
token = req.cookies['jwt']
}
// Force uploads to use Auth headers
if (req.path === '/u') {
if (req.path.toLowerCase() === '/u') {
return null
}
return token
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment