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
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.