ArchiveBox/archivebox/api
Claude 0041a2d407
Some checks failed
Build Docker image / buildx (push) Has been cancelled
Run linters / lint (push) Has been cancelled
Build Pip package / build (push) Has been cancelled
Release State / release-state (push) Has been cancelled
Run tests / python_tests (ubuntu-22.04, 3.13) (push) Has been cancelled
Run tests / docker_tests (push) Has been cancelled
Sanitize tag export filenames via django.utils.text.slugify
Addresses review feedback from cubic and devin: quote()'s percent-
encoding isn't decoded by browsers in Content-Disposition's filename
parameter (Safari saves literal %20). Switch to Django's slugify()
which does NFKD normalization, ASCII transliteration, and replaces
punctuation with hyphens — producing clean names like
"tag-alpha-research-urls.txt".

- Add tag_filename_safe(name) helper wrapping slugify
- Use it in both tag export endpoints
- Drop the now-unneeded JS fallback name (server always sets
  Content-Disposition)
2026-04-21 17:30:50 +00:00
..
migrations wip 2026-03-23 03:58:32 -07:00
__init__.py wip 2026-03-23 03:58:32 -07:00
admin.py wip 2026-03-23 03:58:32 -07:00
apps.py wip 2026-03-23 03:58:32 -07:00
auth.py wip 2026-03-23 03:58:32 -07:00
middleware.py wip 2026-03-23 03:58:32 -07:00
models.py wip 2026-03-23 03:58:32 -07:00
urls.py wip 2026-03-23 03:58:32 -07:00
v1_api.py wip 2026-03-23 03:58:32 -07:00
v1_auth.py wip 2026-03-23 03:58:32 -07:00
v1_cli.py wip 2026-03-23 03:58:32 -07:00
v1_core.py Sanitize tag export filenames via django.utils.text.slugify 2026-04-21 17:30:50 +00:00
v1_crawls.py wip 2026-03-23 03:58:32 -07:00
v1_machine.py wip 2026-03-23 03:58:32 -07:00