Repository navigation
Commit 309dfd4
committed
fix(runtime): keep a dot-segment http(s) scope key from widening its scope
An import-map scope key such as `http://host/a/..` parses to
`http://host/`. Dropping the parser's trailing slash whenever the written
key lacked one turned that into the prefix `http://host`, which also
matches referrers on `http://host.evil/`; `http://host/a/.` likewise
matched `/ab/...`. Only a key written with no path at all now loses the
parser's slash.1 parent 3ac5f74 commit 309dfd4
2 files changed
Lines changed: 38 additions & 3 deletions
File tree
- test-app
- app/src/main/assets/app/tests
- runtime/src/main/cpp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
570 | 596 | | |
571 | 597 | | |
572 | 598 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
771 | | - | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
772 | 774 | | |
773 | 775 | | |
774 | 776 | | |
775 | 777 | | |
776 | 778 | | |
777 | | - | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
778 | 787 | | |
779 | 788 | | |
780 | 789 | | |
| |||
0 commit comments