Put in a quick fix for a bug involving page preview while creating a page

that caused the page location to be changed to a subdir. This is not a very
good fix.
master
joey 2006-03-28 22:56:56 +00:00
parent c72af182d8
commit bce9a327c3
1 changed files with 3 additions and 1 deletions

View File

@ -355,7 +355,9 @@ sub cgi_editpage ($$) { #{{{
my ($from)=$form->param('from')=~/$config{wiki_file_regexp}/; my ($from)=$form->param('from')=~/$config{wiki_file_regexp}/;
if (! defined $from || ! length $from || if (! defined $from || ! length $from ||
$from ne $form->param('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; @page_locs=$best_loc=$page;
} }
else { else {