
18 Jul
2006
18 Jul
'06
9:11 a.m.
On Mon, Jul 17, 2006 at 03:07:51AM +0100,
Neil Mitchell
How about adding something like "restrictFilePaths :: FilePath -> IO ()" which will restrict the area that can be played with to that beneath the given FilePath?
If someone does so, be aware that it is *not* trivial to write it securely. For instance, many lazy (not in the Haskell meaning) programmers believe that the path is safe if it does not include .. but it is false (hint: ."."/foo/bar is a legal path on Unix).