ikiwiki/IkiWiki
Joey Hess 0ec2c55ac0
aggregate: Fix aggregation of posts without a title
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.
2018-10-28 19:00:32 -04:00
..
Plugin aggregate: Fix aggregation of posts without a title 2018-10-28 19:00:32 -04:00
Setup Silence "used only once: possible typo" warnings for variables that are part of modules' APIs 2016-01-19 11:24:18 +00:00
CGI.pm Don't send relative redirect URLs when behind a reverse proxy 2018-01-08 10:56:12 +00:00
Receive.pm IkiWiki::Receive: Avoid using asprintf 2017-10-01 13:21:56 +01:00
Render.pm improve warning message for multiple sources for page 2016-05-31 15:29:09 -04:00
Setup.pm Detect plugins with a broken getsetup and warn. 2013-03-04 13:19:05 -04:00
UserInfo.pm
Wrapper.pm Need <sys/wait.h> for waitpid (NetBSD 8 warns). 2018-08-21 11:30:55 +02:00