* Patch from Jordà Polo to make Setup::Standard support hashes in config
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 23 Aug 2006 18:41:32 +0000 (18:41 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 23 Aug 2006 18:41:32 +0000 (18:41 +0000)
  files.

IkiWiki/Setup/Standard.pm
debian/changelog

index b76c87b8e9ccf4b17c83c8e32dd88821e98016d6..b7583097daf84851b0ebc43900ae941e79677695 100644 (file)
@@ -55,6 +55,11 @@ sub setup_standard {
                        elsif (ref $setup{$c} eq 'ARRAY') {
                                $config{$c}=[map { possibly_foolish_untaint($_) } @{$setup{$c}}]
                        }
+                       elsif (ref $setup{$c} eq 'HASH') {
+                               foreach my $key (keys %{$setup{$c}}) {
+                                       $config{$c}{$key}=possibly_foolish_untaint($setup{$c}{$key});
+                               }
+                       }
                }
                else {
                        $config{$c}=undef;
index 4f7342cde4a1c7dbce34a79c33f91117b741b81a..0d0b74d054a99b66bb3649b94d97823db0f788be 100644 (file)
@@ -14,8 +14,10 @@ ikiwiki (1.22) UNRELEASED; urgency=low
   * Use the template plugin to add infoboxes to each plugin page listing basic
     info about the plugin.
   * Make pagespec merge code smarter about merging duplicate pagespecs.
+  * Patch from Jordà Polo to make Setup::Standard support hashes in config
+    files.
 
- -- Joey Hess <joeyh@debian.org>  Wed, 23 Aug 2006 02:38:34 -0400
+ -- Joey Hess <joeyh@debian.org>  Wed, 23 Aug 2006 14:35:18 -0400
 
 ikiwiki (1.21) unstable; urgency=low