From 892eac7f77f0e54fc8003ca9e306a76d59ebc519 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 11 Dec 2014 20:08:49 -0400 Subject: sanitize filepaths provided by checkUrl --- Command/ImportFeed.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Command/ImportFeed.hs') diff --git a/Command/ImportFeed.hs b/Command/ImportFeed.hs index a34052110..d827d549f 100644 --- a/Command/ImportFeed.hs +++ b/Command/ImportFeed.hs @@ -156,7 +156,7 @@ performDownload relaxed cache todownload = case location todownload of downloadRemoteFile r relaxed url f sz Right (UrlMulti l) -> do kl <- forM l $ \(url', sz, subf) -> - downloadRemoteFile r relaxed url' (f subf) sz + downloadRemoteFile r relaxed url' (f fromSafeFilePath subf) sz return $ if all isJust kl then catMaybes kl else [] -- cgit v1.2.3