mirror of
https://github.com/standardnotes/server
synced 2026-10-11 21:13:12 -04:00
fix: Prevents path injection on unsubscribe
This commit is contained in:
@@ -51,7 +51,7 @@ export class ActionsController extends BaseHttpController {
|
||||
await this.serviceProxy.callEmailServer(
|
||||
request,
|
||||
response,
|
||||
`subscriptions/actions/unsubscribe/${request.params.token}`,
|
||||
`subscriptions/actions/unsubscribe/${encodeURIComponent(request.params.token)}`,
|
||||
request.body,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user