From b8c74e86ffbcc824b3e9f4e6f64bfa72ff432390 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Tue, 29 Jun 2010 00:35:09 +0300 Subject: [PATCH] Fixes for CGI scripts in a subpath --- Yesod/Dispatch.hs | 2 +- yesod.cabal | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Yesod/Dispatch.hs b/Yesod/Dispatch.hs index 9fd28ffc..378c01d3 100644 --- a/Yesod/Dispatch.hs +++ b/Yesod/Dispatch.hs @@ -171,7 +171,7 @@ toWaiApp :: (Yesod y, YesodSite y) => y -> IO W.Application toWaiApp a = return $ gzip $ jsonp - $ cleanPath + $ cleanPathRel (B.pack $ approot a) $ toWaiApp' a toWaiApp' :: (Yesod y, YesodSite y) diff --git a/yesod.cabal b/yesod.cabal index 43fa9682..8e99bf93 100644 --- a/yesod.cabal +++ b/yesod.cabal @@ -1,5 +1,5 @@ name: yesod -version: 0.3.1 +version: 0.3.1.1 license: BSD3 license-file: LICENSE author: Michael Snoyman @@ -23,7 +23,7 @@ library build-depends: base >= 4 && < 5, time >= 1.1.3 && < 1.2, wai >= 0.1.0 && < 0.2, - wai-extra >= 0.1.2 && < 0.2, + wai-extra >= 0.1.3 && < 0.2, authenticate >= 0.6.2 && < 0.7, bytestring >= 0.9.1.4 && < 0.10, directory >= 1 && < 1.1,