diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-23 18:41:32 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-23 18:41:32 +0000 |
commit | aa04f54ae94461e6e6ef42596824247c9e04ca5f (patch) | |
tree | b5abc9ee0fcdd9f15f927f76836ff4534ccdb255 /IkiWiki/Setup | |
parent | 5085ae1360c30c163fef4de94dcc65fef9f5ef17 (diff) | |
download | ikiwiki-aa04f54ae94461e6e6ef42596824247c9e04ca5f.tar ikiwiki-aa04f54ae94461e6e6ef42596824247c9e04ca5f.tar.gz |
* Patch from Jordà Polo to make Setup::Standard support hashes in config
files.
Diffstat (limited to 'IkiWiki/Setup')
-rw-r--r-- | IkiWiki/Setup/Standard.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm index b76c87b8e..b7583097d 100644 --- a/IkiWiki/Setup/Standard.pm +++ b/IkiWiki/Setup/Standard.pm @@ -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; |