From: Joey Hess Date: Tue, 15 Jun 2010 21:41:26 +0000 (-0400) Subject: fix other cases of unicode mixing issue X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/a2989598884807ace2a9efd248b7c32824cf6c6f fix other cases of unicode mixing issue and fix underlaydir override attack guard when srcdir is non-absolute --- a2989598884807ace2a9efd248b7c32824cf6c6f diff --cc IkiWiki/Render.pm index 0e7aa9a48,f81e373b7..740bb52b0 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@@ -295,8 -300,9 +300,8 @@@ sub find_src_files () my ($page, $underlay); my $helper=sub { my $file=decode_utf8($_); - return if -l $file || -d _; - $file=~s/^\Q.\/\E//; + $file=~s/^\.\///; return if ! length $file; $page = pagename($file); if (! exists $pagesources{$page} &&