News for hackers. Stuff that matters.
Re:Lisp and the Web: Creating Web Apps Through Lisp and GCE by abhinav22 on Friday April 16, 2021 @09:46AM (#26833788)
The issue with my code is that somebody can put in arbitrary SQL queries within the data field (I think - not sure if it is 100% possible because their data would be enclosed within the programs SQL query, which may break their attempts)

Best way around it is to put in checks to prevent the code from being anything nefarious. I’ll have a think and figure out what’s the best way of doing this, but I assume not constructing the sql strings from scratch but rather using postmodern’s API (postmodern is Common Lisp’s excellent interface to PostgreSQL) makes sense, or the alternate solution recommended in the other reply to your post.

Re:Lisp and the Web: Creating Web Apps Through Lisp and GCE by stevelosh on Friday April 16, 2021 @11:48AM (#26835375)
Postmodern can do the right thing if you use prepared queries. See `defprepared`.
Re:Lisp and the Web: Creating Web Apps Through Lisp and GCE by abhinav22 on Friday April 16, 2021 @02:48PM (#26837606)
Thanks! I will use that
Re:Lisp and the Web: Creating Web Apps Through Lisp and GCE by abhinav22 on Saturday April 17, 2021 @01:48PM (#26846050)
For those interested, refer to https://sites.google.com/site/sabraonthehill/postmodern-exam...

Thanks also to kagevf on #lisp irc channel for his help here