Fork me on GitHub
#luminus
<
2016-07-19
>
gowder01:07:58

hmm... so I'm trying to do something really stupid and insecure, but not in a context that matters (run arbitrary database fetch queries by get requests). Does anyone know--- if I use the keyword syntax in a compojure defroute (like GET /fetch/:query), and pass in a map, like "bar"} does that come in as a string? Or does some kind of ring default middleware magic turn it into a proper map?

gowder01:07:51

(or does that even work? hmm... may have to experiment some.

gowder02:07:43

(actually, turns out what happens is that the browser gets confused and interprets it as a google search. so back to boring normal ?query= syntax