Address path traversal and other security fixes
This commit is contained in:
@@ -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