MHLoppy@fedia.io to Programmer Humor · 2 days agoisInHell = 'true'fedia.ioimagemessage-square81fedilinkarrow-up1651arrow-down13file-text
arrow-up1648arrow-down1imageisInHell = 'true'fedia.ioMHLoppy@fedia.io to Programmer Humor · 2 days agomessage-square81fedilinkfile-text
minus-squarepHr34kY@lemmy.worldlinkfedilinkarrow-up5·1 day agoThe backend and frontend on the product I work on are like this. As long as you remember that booleans are not strings and should always be parsed if they are, this won’t be a problem. I am yet to see a boolean.parse() implementation in the wild that is case sensitive.
minus-squarecomputergeek125@lemmy.worldlinkfedilinkEnglisharrow-up1·2 hours agoThe could be using .js and .py files directly as config files and letting the language interpreter so the heavy lifting. Just like ye olde config.php. And yes this absolutely will allow code injection by a config admin.
The backend and frontend on the product I work on are like this.
As long as you remember that booleans are not strings and should always be parsed if they are, this won’t be a problem.
I am yet to see a boolean.parse() implementation in the wild that is case sensitive.
The could be using .js and .py files directly as config files and letting the language interpreter so the heavy lifting. Just like ye olde config.php.
And yes this absolutely will allow code injection by a config admin.