diff options
author | Adam Chlipala <adam@chlipala.net> | 2014-06-15 10:48:53 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2014-06-15 10:48:53 -0400 |
commit | ee403caeb0c37c4ce103da8c4aa18ac7794a42b7 (patch) | |
tree | e9bafd164627ab6d54ef4f802bf4372260628386 /src/monoize.sml | |
parent | 3d0b00d33082e8759fe1ce91094fe105b28d6293 (diff) |
'sql_injectable_prim' instance for 'url'
Diffstat (limited to 'src/monoize.sml')
-rw-r--r-- | src/monoize.sml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/monoize.sml b/src/monoize.sml index 8c33e60b..a639f4a6 100644 --- a/src/monoize.sml +++ b/src/monoize.sml @@ -2208,6 +2208,10 @@ fun monoExp (env, st, fm) (all as (e, loc)) = ((L'.EAbs ("x", (L'.TFfi ("Basis", "string"), loc), (L'.TFfi ("Basis", "string"), loc), (L'.EFfiApp ("Basis", "sqlifyString", [((L'.ERel 0, loc), (L'.TFfi ("Basis", "string"), loc))]), loc)), loc), fm) + | L.EFfi ("Basis", "sql_url") => + ((L'.EAbs ("x", (L'.TFfi ("Basis", "string"), loc), (L'.TFfi ("Basis", "string"), loc), + (L'.EFfiApp ("Basis", "sqlifyString", [((L'.ERel 0, loc), (L'.TFfi ("Basis", "string"), loc))]), loc)), loc), + fm) | L.ECApp ((L.EFfi ("Basis", "sql_prim"), _), t) => let val t = monoType env t |