Closed siimpragi closed 2 years ago
Thank you for the report. Cool/real bug, will fix.
In general, we built the export feature in scrappy/MVP way. It barely functions, but has many things we know we can improve. If there are specific things which cause breakage (like this one) or just very big annoyances, feel free to file other specific items about those.
Fixed in 1.2 (159).
Describe the bug
When you export a chat that has certain characters in its name (e.g.
"
) the HTML that is produced gets jumbled.Environment
To reproduce
Steps to reproduce the behavior:
"
in its nameindex.html
from the directory that got createdExpected behavior
index.html
should render the chatlog.Observed behavior
The page didn't render any data.
Any other info
For example, exporting a chat named 'The "Good" Guys' gives us an
index.html
containing:Note that the file containing all that JSON data was given the same name as the chat itself. That filename is injected straight into the URI string. The markup gets messed up as a result. Could
content.chat.id
perhaps be used as the filename instead?