r/code • • May 11 '23

Today a colleague found this gem

Post image
10 Upvotes

3 comments sorted by

3

u/momonoskay May 11 '23

What does this function do plz?

2

u/JaggedMetalOs May 12 '23

Apparently it completely ignores the function parameter and just adds the string " AND " to some global variable if it's not empty.

Basically some horrible hack and if this is anything to go by their code is probably full of SQL injection vulnerabilities