Commit 5b89c26
authored
fix(chrome-extension): keep background.mjs a text file (#1969)
A stray NUL byte in the candidate key's separator made git classify
background.mjs as binary, so it shipped in #1967 with no readable diff. The
review bot said as much, having to anchor a comment about that file onto an
unrelated test line because a binary diff accepts none. The separator is now
written as an escape, which is the same character without the file-level
consequence.
Also scope the tile-template brace restoration in serviceUrlParameter to the
kinds that use `{z}/{x}/{y}`. Rewriting `%7B`/`%7D` for every kind would turn a
brace that a WMS or ArcGIS URL legitimately encodes, in a signed parameter or
token, into a literal the server never sent.1 parent 6299590 commit 5b89c26
3 files changed
Lines changed: 28 additions & 1 deletion
File tree
- apps/geolibre-desktop/src/lib
- extensions/geolibre-chrome
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
32 | 42 | | |
33 | 43 | | |
34 | 44 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
57 | 74 | | |
58 | 75 | | |
59 | 76 | | |
| |||
0 commit comments