Is the backend Python and the frontend JavaScript? Because then that would happen and just be normal, because Boolean true is True in python.
Probably, but if you’re interpreting user inputs as raw code, you’ve got much much worse problems going on, lol.

Given the warning about capitalization, the best possible case is that they’re using ast.literal_eval() rather than throwing untrusted input into eval().

Err, I guess they might be comparing strings to ‘True’ and are choosing to be really strict about capitalization for some reason.

ast — Abstract syntax trees

Source code: Lib/ast.py The ast module helps Python applications to process trees of the Python abstract syntax grammar. The abstract syntax itself might change with each Python release; this modul...

Python documentation
Yeah. Maybe .to_lower() is really expensive in their environment, lol.