Mercurial > urweb
diff src/settings.sml @ 1478:a10d080123ec
'noXsrfProtection' .urp directive
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Fri, 24 Jun 2011 13:50:59 -0400 |
parents | 5018878ca645 |
children | 290de2dcecf6 |
line wrap: on
line diff
--- a/src/settings.sml Thu Jun 23 08:44:03 2011 -0400 +++ b/src/settings.sml Fri Jun 24 13:50:59 2011 -0400 @@ -1,4 +1,4 @@ -(* Copyright (c) 2008-2010, Adam Chlipala +(* Copyright (c) 2008-2011, Adam Chlipala * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -570,4 +570,8 @@ fun addAlwaysInline s = alwaysInline := SS.add (!alwaysInline, s) fun checkAlwaysInline s = SS.member (!alwaysInline, s) +val noXsrfProtection = ref SS.empty +fun addNoXsrfProtection s = noXsrfProtection := SS.add (!noXsrfProtection, s) +fun checkNoXsrfProtection s = SS.member (!noXsrfProtection, s) + end