avoid uninitialised value
parent
05124f9a86
commit
6e2dc2b1fd
|
@ -46,10 +46,10 @@ sub diff ($$) { #{{{
|
||||||
sub formbuilder_setup { #{{{
|
sub formbuilder_setup { #{{{
|
||||||
my %params=@_;
|
my %params=@_;
|
||||||
my $form=$params{form};
|
my $form=$params{form};
|
||||||
|
|
||||||
|
return if defined ! $form->field("do") || $form->field("do") ne "edit";
|
||||||
|
|
||||||
my $page=$form->field("page");
|
my $page=$form->field("page");
|
||||||
|
|
||||||
return if $form->field("do") ne "edit";
|
|
||||||
|
|
||||||
$page = IkiWiki::possibly_foolish_untaint($page);
|
$page = IkiWiki::possibly_foolish_untaint($page);
|
||||||
return unless exists $pagesources{$page};
|
return unless exists $pagesources{$page};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue