diff --git a/Commands/Web.hs b/Commands/Web.hs index be9759fb9..effb3e9ef 100644 --- a/Commands/Web.hs +++ b/Commands/Web.hs @@ -6,6 +6,7 @@ A web-based UI. module Commands.Web where +import Codec.Binary.UTF8.String (decodeString) import Control.Applicative.Error (Failing(Success,Failure)) import Control.Concurrent import Control.Monad.Reader (ask) @@ -243,8 +244,8 @@ searchform env = do addform :: Hack.Env -> HSP XML addform env = do let inputs = Hack.Contrib.Request.inputs env - date = fromMaybe "" $ lookup "date" inputs - desc = fromMaybe "" $ lookup "desc" inputs + date = decodeString $ fromMaybe "" $ lookup "date" inputs + desc = decodeString $ fromMaybe "" $ lookup "desc" inputs