Commit 4155c48
Merge commit from fork
* Fix FreeText annotation style string escaping
* Remove dist artifacts from FreeText fix PR
* Harden FreeText color: add hex validation, fix double #, expand tests
- Validate color as hex pattern (3-8 hex chars), fallback to 000000
for non-hex input as defense-in-depth alongside pdfEscape
- Strip leading # before concatenation to prevent double ## in output
- Add tests: injection rejection, backslash bypass, valid hex colors,
double # prevention, non-hex fallback
* Update freetext.pdf reference for double # fix
The reference file had color:##ff0000 (double #) which was
a pre-existing bug. Now that we strip the leading # before
concatenation, the output is color:#ff0000 and the reference
must match.
* Revert "Update freetext.pdf reference for double # fix"
This reverts commit b6139558ededb872a663f62898d68f0f2d35bde5.
* Revert "Harden FreeText color: add hex validation, fix double #, expand tests"
This reverts commit 0b8baf967c5089ec40f0a86c3d59cb47fcc0823e.
---------
Co-authored-by: Doruk <peak@peaktwilight.com>
Co-authored-by: Lukas Holländer <lukas.hollaender@yworks.com>1 parent 87a40bb commit 4155c48
2 files changed
+26
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
194 | 197 | | |
195 | 198 | | |
196 | 199 | | |
| |||
199 | 202 | | |
200 | 203 | | |
201 | 204 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
58 | 80 | | |
59 | 81 | | |
60 | 82 | | |
| |||
0 commit comments