We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cddd8d7 commit d4ef6e8Copy full SHA for d4ef6e8
1 file changed
apps/web/middleware.ts
@@ -101,7 +101,7 @@ const middleware = async (req: NextRequest): Promise<NextResponse<unknown>> => {
101
try {
102
await checkRateLimitAndThrowError({
103
rateLimitingType: "common",
104
- identifier: `${req.nextUrl.pathname}-${piiHasher.hash(requestorIp)}`,
+ identifier: `${encodeURIComponent(req.nextUrl.pathname)}-${piiHasher.hash(requestorIp)}`,
105
});
106
} catch (error) {
107
if (error instanceof HttpError) {
0 commit comments