diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-08 13:47:42 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-08 13:47:42 +0200 |
| commit | ab8be8e3d58a5c2dd8b351110822063b482311e1 (patch) | |
| tree | b120813a6fc6d5b2f679c9122c75ce7ba1ebcd9c /tests/test_version.py | |
| parent | e7b0a533bb92fd0a800f92d220aacf994cef0387 (diff) | |
| download | abusectl-ab8be8e3d58a5c2dd8b351110822063b482311e1.tar.gz abusectl-ab8be8e3d58a5c2dd8b351110822063b482311e1.zip | |
refactor: one URL scan serving both the report and the flagging
The IOC assembly needed each URL in two forms: redacted for the report,
original to recognise a suspect token, since by the time a query value
reads REDACTED there is nothing left to look at. That arrived as a second
scanner rebuilding a {redacted: original} mapping by repeating urls()'s
own walk, which is two functions that have to stay in step by hand.
One private _scan_urls() returns both forms instead. urls() keeps its
signature and is now a sort over its keys, and the two forms cannot drift
because nothing derives one from the other twice.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KphFXTc2QajxXsHWyvGJ4R
Diffstat (limited to 'tests/test_version.py')
0 files changed, 0 insertions, 0 deletions
