Skip to content

Conversation

@tcsenpai
Copy link

@tcsenpai tcsenpai commented Feb 8, 2026

Remove |safe filter from item_payload hidden input to prevent
broken JSON payloads when movie titles contain quotes or accents.

The |safe filter prevented Django from HTML-escaping special characters,
which broke the HTML attribute parsing when titles contained single
quotes (e.g., "Lo chiamavano Trinità"). This caused "invalid payload"
errors when attempting to download such movies.

With auto-escaping:

  • HTML source: {"name": "Trinità"} (safe)
  • Browser displays: {"name": "Trinità"}
  • Form submits: original text (valid JSON)

tcsenpai added 6 commits February 8, 2026 19:56
- STACK.md - Technologies and dependencies
- ARCHITECTURE.md - System design and patterns
- STRUCTURE.md - Directory layout
- CONVENTIONS.md - Code style and patterns
- TESTING.md - Test structure
- INTEGRATIONS.md - External services
- CONCERNS.md - Technical debt and issues
Define project vision, requirements (19 v1 + 6 v2), and 5-phase roadmap
for building a cross-platform Electron GUI backed by FastAPI.
Remove |safe filter from item_payload hidden input to prevent
broken JSON payloads when movie titles contain quotes or accents.

The |safe filter prevented Django from HTML-escaping special characters,
which broke the HTML attribute parsing when titles contained single
quotes (e.g., "Lo chiamavano Trinità"). This caused "invalid payload"
errors when attempting to download such movies.

With auto-escaping:
- HTML source: {"name": "Trinità"} (safe)
- Browser displays: {"name": "Trinità"}
- Form submits: original text (valid JSON)

Fixes Arrowar#1
@Arrowar Arrowar changed the base branch from main to dev February 8, 2026 19:21
@Arrowar Arrowar merged commit 237f834 into Arrowar:dev Feb 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants