aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 1eda16da1..0d7669397 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -544,6 +544,13 @@ sub getsetup () {
safe => 0,
rebuild => 0,
},
+ allow_symlinks => {
+ type => "boolean",
+ default => 0,
+ description => "allow symlinks in the repository",
+ safe => 0,
+ rebuild => 0,
+ },
cookiejar => {
type => "string",
default => { file => "$ENV{HOME}/.ikiwiki/cookies" },
@@ -999,7 +1006,7 @@ sub readfile ($;$$) {
my $binary=shift;
my $wantfd=shift;
- if (-l $file) {
+ if (!$config{allow_symlinks} and -l $file) {
error("cannot read a symlink ($file)");
}