fix: prevent upload bypass via uppercase path

pull/4985/head 2.5.274
Nicolas Giard 3 years ago committed by GitHub
parent cab16ee844
commit 7b14b39de0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save