remove explicit absolute test
authorJoey Hess <joey@kitenet.net>
Tue, 20 Apr 2010 17:59:17 +0000 (13:59 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 20 Apr 2010 17:59:17 +0000 (13:59 -0400)
file_pruned now tests for that

IkiWiki/Plugin/editpage.pm

index dff7771381ddca5d9392d50bae81356c61fd5805..2130a84024b6223cfacc352e2008639b0bf2d5f4 100644 (file)
@@ -221,7 +221,6 @@ sub cgi_editpage ($$) {
                        if (! defined $from || ! length $from ||
                            $from ne $form->field('from') ||
                            file_pruned($from) ||
-                           $from=~/^\// || 
                            $absolute ||
                            $form->submitted) {
                                @page_locs=$best_loc=$page;