Commit 29e9c2b
Fix path concatenation vulnerability in user page
Prevents double slashes when handlerPath is '/' and endpointPath starts with '/'
by using proper path joining logic: handlerPath.replace(/\/?$/, '/') + endpointPath.replace(/^\//, '')
Co-authored-by: Konsti Wohlwend <N2D4@users.noreply.github.com>1 parent e0e8a3a commit 29e9c2b
File tree
1 file changed
+1
-1
lines changed- apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/users/[userId]
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
575 | | - | |
| 575 | + | |
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| |||
0 commit comments