edittemplate: Work around bug #551499 in CGI::FormBuilder.

master
Joey Hess 2009-10-18 13:56:35 -04:00
parent d1a88c892e
commit 2d60ea7fa8
2 changed files with 6 additions and 2 deletions

View File

@ -83,10 +83,13 @@ sub formbuilder (@) {
foreach my $field ($form->field) {
if ($field eq 'page') {
@page_locs=$field->def_value;
push @page_locs, $field->options;
}
}
# FormBuilder is on the bad crack. See #551499
my @options=map { ref $_ ? @$_ : $_ } $field->options;
push @page_locs, @options;
}
}
foreach my $p (@page_locs) {
foreach my $registering_page (keys %pagestate) {
if (exists $pagestate{$registering_page}{edittemplate}) {

1
debian/changelog vendored
View File

@ -2,6 +2,7 @@ ikiwiki (3.20091018) UNRELEASED; urgency=low
* edittemplate: Allow template page name to be specified using anything
legal for a wikilink (including eg, leading slashes).
* edittemplate: Work around bug #551499 in CGI::FormBuilder.
-- Joey Hess <joeyh@debian.org> Sun, 18 Oct 2009 13:44:09 -0400