Closed JDPDO closed 1 year ago
Thank you for reporting this issue. I haven’t been able to confirm it yet but I will take a closer look later.
Are you interested in helping create a fix for it?
Yes, but I started elixir programming only several weeks ago.
I've done some investigation. My foundings:
The error is caused by earmark's parser in mailings builder trying to parse an unfinished Gruber Markdown Text. The grave accent (`) encloses for code formatting. For example complet copy `this works`
and paste. No errors will occur.
What I do not understand so far is: Why are all other enclosures like { and _ not affected?
The error goes further than assumed: All HTML element enclosures trigger an invalid template the moment only one element added.
Try adding <div>, <p>, ...
triggers the bug.
What is if we are adding a function closing all open enclosures before passing text to earmarks parser?
Investigating deeper: Not using the rich text editor in campaigns edition triggers the bug too.
The bug that caused session breakdowns with invalid markup in the signature field has been fixed in #175.
What happens?
Using the specific character causing first some kind of session (dead-/live-)lock, then storage of corrupted entity, followed by internal server error (500). (From future: HTML enclosures are affected too.)
How to reproduce