From 31903c34f8c37319e69fab80f43b53c2cf835a15 Mon Sep 17 00:00:00 2001 From: pythonissam Date: Sun, 17 Dec 2017 08:50:48 +0000 Subject: [PATCH] fileByLabelExact: Created the exact version of fileByLabel --- yesod-test/Yesod/Test.hs | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/yesod-test/Yesod/Test.hs b/yesod-test/Yesod/Test.hs index 74874f6a..2762f42d 100644 --- a/yesod-test/Yesod/Test.hs +++ b/yesod-test/Yesod/Test.hs @@ -75,6 +75,7 @@ module Yesod.Test , byLabel , byLabelExact , fileByLabel + , fileByLabelExact -- *** CSRF Tokens -- | In order to prevent CSRF exploits, yesod-form adds a hidden input @@ -678,6 +679,8 @@ byLabelExact = byLabelWithMatch (==) -- >
-- > -- >
+-- +-- Warning: There exists the same issue of 'byLabel'. Please use 'fileByLabelExact' instead. fileByLabel :: T.Text -- ^ The text contained in the @\