aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Setup
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-23 18:41:32 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-23 18:41:32 +0000
commitaa04f54ae94461e6e6ef42596824247c9e04ca5f (patch)
treeb5abc9ee0fcdd9f15f927f76836ff4534ccdb255 /IkiWiki/Setup
parent5085ae1360c30c163fef4de94dcc65fef9f5ef17 (diff)
downloadikiwiki-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.pm5
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;