diffurl => '',
anonok => 0,
rss => 0,
+ sanitize => 1,
rebuild => 0,
refresh => 0,
getctime => 0,
"rss!" => \$config{rss},
"cgi!" => \$config{cgi},
"notify!" => \$config{notify},
+ "sanitize!" => \$config{sanitize},
"url=s" => \$config{url},
"cgiurl=s" => \$config{cgiurl},
"historyurl=s" => \$config{historyurl},
sub basename ($) { #{{{
my $file=shift;
- $file=~s!.*/!!;
+ $file=~s!.*/+!!;
return $file;
} #}}}
sub dirname ($) { #{{{
my $file=shift;
- $file=~s!/?[^/]+$!!;
+ $file=~s!/*[^/]+$!!;
return $file;
} #}}}
loadindex();
require IkiWiki::Render;
rcs_update();
- rcs_notify() if $config{notify};
rcs_getctime() if $config{getctime};
refresh();
+ rcs_notify() if $config{notify};
saveindex();
}
} #}}}