Address path traversal and other security fixes
This commit is contained in:
1 parent
e1c32b6584
commit
da16fddce3
4 files changed
+19
-18
No files matched your search
+1
-1
@@ -85,7 +85,7 @@ impl FromRequest for Claims {
|
||||
)
|
||||
.and_then(|header| {
|
||||
Claims::from_str(header)
|
||||
.with_context(|| format!("Unable to decode token from: {}", header))
|
||||
.with_context(|| "Unable to decode token from Authorization header")
|
||||
})
|
||||
.map_or_else(
|
||||
|e| {
|
||||
|
||||
Reference in new issue
Block a user