Allow .htaccess files in the source repository
authorQuentin Smith <quentin@mit.edu>
Tue, 27 Jan 2009 09:10:27 +0000 (04:10 -0500)
committerQuentin Smith <quentin@mit.edu>
Tue, 27 Jan 2009 09:10:31 +0000 (04:10 -0500)
IkiWiki.pm

index 4601d8590388d36cc2fc2aebca70318dfefa53ce..c3bdf80b385b69a26f79580a1ad70aa6bf7efac2 100644 (file)
@@ -318,7 +318,8 @@ sub getsetup () {
        },
        wiki_file_prune_regexps => {
                type => "internal",
-               default => [qr/(^|\/)\.\.(\/|$)/, qr/^\./, qr/\/\./,
+               default => [qr/(^|\/)\.\.(\/|$)/, qr/^\.(?!htaccess)/,
+                       qr/\/\.(?!htaccess)/,
                        qr/\.x?html?$/, qr/\.ikiwiki-new$/,
                        qr/(^|\/).svn\//, qr/.arch-ids\//, qr/{arch}\//,
                        qr/(^|\/)_MTN\//,