Values have to be checked against wiki_file_regexp, not just file_pruned.
Audited the rest of the code base for similar problems, found none.
}
# The untaint is OK (as in editpage) because we're about to pass
- # it to file_pruned anyway
- my $page = $form->field('page');
+ # it to file_pruned and wiki_file_regexp anyway.
+ my $page = $form->field('page')=~/$config{wiki_file_regexp}/;
$page = IkiWiki::possibly_foolish_untaint($page);
if (! defined $page || ! length $page ||
IkiWiki::file_pruned($page)) {
to feed links. (Giuseppe Bilotta)
* inline: Use class rather than id for feedlinks and blogform.
(Giuseppe Bilotta)
+ * comments: Fix XSS security hole due to missing validation of page name.
-- Joey Hess <joeyh@debian.org> Thu, 06 Jan 2011 14:41:34 -0400