this post was submitted on 02 Jan 2024
835 points (99.4% liked)

Programmer Humor

32710 readers
122 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] kromem 8 points 1 year ago

It's not executing the code.

Their message contains brackets. Which is what the template engine is using to determine variations.

So the unsanitized user message is being processed by the temple engine, probably kills it with invalid formatting, and the engine no longer applies the templating to the rest of the message leaving the variations in the text sent to the messaging app.