]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
aggregate: Fix aggregation of posts without a title
authorJoey Hess <joeyh@joeyh.name>
Sun, 28 Oct 2018 22:57:45 +0000 (18:57 -0400)
committerJoey Hess <joeyh@joeyh.name>
Sun, 28 Oct 2018 23:00:32 +0000 (19:00 -0400)
When an aggregated post lacked a title, the code first prepended the
$feed->{dir} to it, and only then checked if it had zero length. So,
that check could never succeed and it was possible to end up with
$page="dir/", and writing to that would of course fail.

(Same problem could also occur when the whole title got sanitized away by the
wiki_file_regexp.)

Fixed by simply checking earlier if $page is empty.

Based on a patch by Alexandre Oliva which got lost in a maze of email
folders all alike for over two years despite him mentioning it to me at
least once in person.


No differences found