Browse files

Fix bug in snaplet url generation

  • Loading branch information...
1 parent a7a5242 commit 86db097dde0b9840c00afe061531b0c2a6d90f90 @mightybyte mightybyte committed Mar 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Snap/Snaplet/Internal/Types.hs
View
2 src/Snap/Snaplet/Internal/Types.hs
@@ -58,7 +58,7 @@ makeLenses ''SnapletConfig
------------------------------------------------------------------------------
-- | Joins a reversed list of directories into a path.
buildPath :: [ByteString] -> ByteString
-buildPath ps = B.intercalate "/" $ reverse ps
+buildPath ps = B.intercalate "/" $ filter (not . B.null) $ reverse ps
------------------------------------------------------------------------------

0 comments on commit 86db097

Please sign in to comment.