Commit 09d5ac9
committed
fix: re-apply path traversal containment to export endpoints
The path traversal fix was lost when upstream extracted routes from
server/index.ts to server/routes/uploads.ts and server/routes/posters.ts.
Re-applies containment check to both export endpoints.1 parent b585521 commit 09d5ac9
2 files changed
Lines changed: 26 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1200 | 1200 | | |
1201 | 1201 | | |
1202 | 1202 | | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
1208 | 1206 | | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
1209 | 1210 | | |
1210 | 1211 | | |
1211 | | - | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
1212 | 1218 | | |
1213 | | - | |
| 1219 | + | |
1214 | 1220 | | |
1215 | 1221 | | |
1216 | 1222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
509 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
510 | 512 | | |
511 | 513 | | |
512 | | - | |
513 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
514 | 521 | | |
515 | 522 | | |
516 | 523 | | |
| |||
0 commit comments