summaryrefslogtreecommitdiff
path: root/Fields.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Fields.hs')
-rw-r--r--Fields.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Fields.hs b/Fields.hs
index 145a8adca..ffd273be6 100644
--- a/Fields.hs
+++ b/Fields.hs
@@ -30,3 +30,6 @@ associatedFile :: Field
associatedFile = Field "associatedfile" $ \f ->
-- is the file a safe relative filename?
not (isAbsolute f) && not ("../" `isPrefixOf` f)
+
+direct :: Field
+direct = Field "direct" $ \f -> f == "1"