avoid uninitialised value

master
Joey Hess 2008-07-06 16:56:50 -04:00
parent 05124f9a86
commit 6e2dc2b1fd
1 changed files with 3 additions and 3 deletions

View File

@ -46,10 +46,10 @@ sub diff ($$) { #{{{
sub formbuilder_setup { #{{{
my %params=@_;
my $form=$params{form};
return if defined ! $form->field("do") || $form->field("do") ne "edit";
my $page=$form->field("page");
return if $form->field("do") ne "edit";
$page = IkiWiki::possibly_foolish_untaint($page);
return unless exists $pagesources{$page};