From: Joey Hess <joey@kitenet.net>
Date: Tue, 20 Apr 2010 17:59:17 +0000 (-0400)
Subject: remove explicit absolute test
X-Git-Tag: 3.20100427~93^2~8
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=230a8b22a471c018c8ec48cd07427c42238a4970;p=ikiwiki.git

remove explicit absolute test

file_pruned now tests for that
---

diff --git a/IkiWiki/Plugin/editpage.pm b/IkiWiki/Plugin/editpage.pm
index dff777138..2130a8402 100644
--- a/IkiWiki/Plugin/editpage.pm
+++ b/IkiWiki/Plugin/editpage.pm
@@ -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;