When using the form to send us a new support ticket it would filter out MODX and HTML tags before the message gets added to our helpdesk. That’s a bit of a problem if you get a lot of questions related to code and snippets.
Luckily that problem is now fixed MODX and HTML tags are now left alone when creating a ticket via that route.
The problem was with the allow_tags_in_post setting in MODX. By default that automatically sanitises POST inputs to prevent all sorts of vulnerabilities. That was removing the tags before they got to our support integration. To fix this, we’re now using a plugin (with the
OnMODXInit event) that disables that setting on that specific page only, and we do our own sanitisation that leaves the tags alone, while making sure they’re not parsed.