Commit eff212d
committed
fix: plug remaining injection and UX gaps
isSafeEnvValue:
- Reject '$' β dotenv / @next/env expand `${OTHER_VAR}` on re-parse,
which would let a submitted value exfiltrate or overwrite sibling
env contents.
- Reject whitespace β writeEnvFile doesn't quote, so an unquoted
`KEY=a b` gets parsed as just `a` on the next read. Rejecting here
is simpler than asymmetric quoting and no legitimate key/URL value
needs spaces or tabs.
settings-panel:
- fetchKeys now returns "ok" | "rejected" | "error" so saveAdminToken
can tell a 401 apart from a network blip. A network failure after a
save no longer falsely claims the token was rejected.
- clearAdminToken and the open-effect mark fetchKeys/fetchSkills as
void to silence @typescript-eslint/no-floating-promises.1 parent 77b45d2 commit eff212d
2 files changed
Lines changed: 44 additions & 25 deletions
Lines changed: 33 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
429 | | - | |
430 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
431 | 433 | | |
432 | 434 | | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
444 | 450 | | |
445 | 451 | | |
446 | 452 | | |
447 | 453 | | |
448 | 454 | | |
449 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
450 | 458 | | |
451 | | - | |
452 | | - | |
| 459 | + | |
| 460 | + | |
453 | 461 | | |
454 | 462 | | |
455 | 463 | | |
| |||
458 | 466 | | |
459 | 467 | | |
460 | 468 | | |
461 | | - | |
462 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
463 | 475 | | |
464 | 476 | | |
465 | 477 | | |
| |||
468 | 480 | | |
469 | 481 | | |
470 | 482 | | |
471 | | - | |
| 483 | + | |
472 | 484 | | |
473 | 485 | | |
474 | 486 | | |
| |||
484 | 496 | | |
485 | 497 | | |
486 | 498 | | |
487 | | - | |
| 499 | + | |
488 | 500 | | |
489 | 501 | | |
490 | 502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
124 | 131 | | |
125 | 132 | | |
126 | | - | |
| 133 | + | |
127 | 134 | | |
128 | 135 | | |
129 | 136 | | |
| |||
0 commit comments