]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
clarify why absolute is tested & stripped here
authorJoey Hess <joey@kitenet.net>
Tue, 20 Apr 2010 17:49:46 +0000 (13:49 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 20 Apr 2010 17:49:46 +0000 (13:49 -0400)
file_prune also fails on absolute filenames now

IkiWiki/Plugin/editpage.pm

index ee1de8eaa10285a818be0205322348cc3a0a117f..dff7771381ddca5d9392d50bae81356c61fd5805 100644 (file)
@@ -92,7 +92,7 @@ sub cgi_editpage ($$) {
        # wiki_file_regexp.
        my ($page)=$form->field('page')=~/$config{wiki_file_regexp}/;
        $page=possibly_foolish_untaint($page);
-       my $absolute=($page =~ s#^/+##);
+       my $absolute=($page =~ s#^/+##); # absolute name used for force location
        if (! defined $page || ! length $page ||
            file_pruned($page)) {
                error(gettext("bad page name"));