diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-15 18:01:49 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-15 18:01:49 +0200 |
| commit | 7a6b1c1ada3ba6ca2ca4ed70cf51f2f5f30d7b1e (patch) | |
| tree | 6b0e0ffd76f0de162093a56d1799847a8b81ade5 /go.mod | |
| parent | 3b8a0e0f4a5c28394ac578e8559bf57ae82d3fd2 (diff) | |
| download | notifyd-7a6b1c1ada3ba6ca2ca4ed70cf51f2f5f30d7b1e.tar.gz notifyd-7a6b1c1ada3ba6ca2ca4ed70cf51f2f5f30d7b1e.zip | |
fix(notify): cover expiry cleanup and harden the image-removal guard
Split the dismiss test so expiry is exercised on its own: Expire removes
the image without deleting the inert entry, and nothing asserted it.
removeImage now requires filepath.Dir(filepath.Clean(path)) to equal the
image directory, so a path carrying .. cannot reach a sibling daemon file
such as queue.json. The previous prefix test accepted it. Not exploitable
until Task 4 populates Popup.Image from a client hint, which is exactly
why the guard is fixed now.
Diffstat (limited to 'go.mod')
0 files changed, 0 insertions, 0 deletions
