Permalink
Browse files

Don't allow files with ".page" extension to be uploaded.

Resolves Issue #10.
  • Loading branch information...
1 parent de94f28 commit 8366b538bdfbf16b7e673933ca1c5259eacdf01c @jgm committed Jan 26, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 Gitit.hs
View
@@ -582,7 +582,7 @@ uploadFile _ params = do
"or check the box to overwrite the existing file existing file.")
, (B.length fileContents > fromIntegral (maxUploadSize cfg),
"File exceeds maximum upload size.")
- , (isPage wikiname,
+ , (takeExtension wikiname == ".page",
"This file extension is reserved for wiki pages.")
]
if null errors

0 comments on commit 8366b53

Please sign in to comment.