aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-06-10 18:47:57 -0400
committerJoey Hess <joey@kitenet.net>2011-06-10 18:47:57 -0400
commit8e15f664c4f3c9260c771fee52f6f5ae20ccdddf (patch)
tree43f8577e15dec6b928d4ab5dec0623e523797f4b /IkiWiki/Plugin
parentdd077fd79bb792bcaa8b5dc880f114963cdf0d3f (diff)
downloadikiwiki-8e15f664c4f3c9260c771fee52f6f5ae20ccdddf.tar
ikiwiki-8e15f664c4f3c9260c771fee52f6f5ae20ccdddf.tar.gz
aggregate: Improve checking for too long aggregated filenames.
Two problems fixed: 1. Files are written with a .ikiwiki-new suffix, which has to be taken into account. 2. Need to count length of bytes, not of unicode characters.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/aggregate.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm
index 4a704617e..7f50b54f0 100644
--- a/IkiWiki/Plugin/aggregate.pm
+++ b/IkiWiki/Plugin/aggregate.pm
@@ -643,7 +643,7 @@ sub add_page (@) {
# Make sure that the file name isn't too long.
# NB: This doesn't check for path length limits.
my $max=POSIX::pathconf($config{srcdir}, &POSIX::_PC_NAME_MAX);
- if (defined $max && length(htmlfn($page)) >= $max) {
+ if (defined $max && length(htmlfn($page).".ikiwiki-new") >= $max) {
$c="";
$page=$feed->{dir}."/item";
while (exists $IkiWiki::pagecase{lc $page.$c} ||