diff options
author | Joey Hess <joey@kitenet.net> | 2007-11-26 15:30:44 -0500 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2007-11-26 15:30:44 -0500 |
commit | e15e3202eb04048feb302b39d946f1ae1a15c306 (patch) | |
tree | af286f69e186483a5179e97939fbc2b01fc6932c /IkiWiki | |
parent | 8df24a447d9bcae138873bc076432e6a69946d7f (diff) |
releasing version 2.14
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Render.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 35d663a7a..e4ff2b39b 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -245,6 +245,17 @@ sub prune ($) { #{{{ } #}}} sub refresh () { #{{{ + # security check, avoid following symlinks in the srcdir path + my $test=$config{srcdir}; + while (length $test) { + if (-l $test) { + error("symlink found in srcdir path ($test)"); + } + unless ($test=~s/\/+$//) { + $test=dirname($test); + } + } + # find existing pages my %exists; my @files; |