diff options
-rw-r--r-- | IkiWiki/CGI.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index f472413b8..89047a952 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -355,7 +355,9 @@ sub cgi_editpage ($$) { #{{{ my ($from)=$form->param('from')=~/$config{wiki_file_regexp}/; if (! defined $from || ! length $from || $from ne $form->param('from') || - $from=~/$config{wiki_file_prune_regexp}/ || $from=~/^\//) { + $from=~/$config{wiki_file_prune_regexp}/ || + $from=~/^\// || + $form->submitted eq "Preview") { @page_locs=$best_loc=$page; } else { |