view tests/reqheader.ur @ 1490:a77fa7e7bb7b

Fix manual syntax for SQL injection
author Adam Chlipala <adam@chlipala.net>
date Fri, 08 Jul 2011 13:33:26 -0400
parents 360cbc202756
children
line wrap: on
line source
fun main () : transaction page =
    ua <- requestHeader "User-Agent";
    case ua of
        None => return <xml>Not found</xml>
      | Some s => return <xml>User-Agent: {[s]}</xml>