aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/websetup.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-02-11 22:55:35 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-02-11 22:55:35 -0500
commit8fdc238c8c9bdfd196310c6261d9ad328a4d9fd2 (patch)
treee4bf2f17463806ad023749e626e9a884245bf603 /IkiWiki/Plugin/websetup.pm
parent6f3641f16c0043f42212976ccba93b3cf7e4e36f (diff)
downloadikiwiki-8fdc238c8c9bdfd196310c6261d9ad328a4d9fd2.tar
ikiwiki-8fdc238c8c9bdfd196310c6261d9ad328a4d9fd2.tar.gz
fix websetup display of unsafe arrays in expert mode
Diffstat (limited to 'IkiWiki/Plugin/websetup.pm')
-rw-r--r--IkiWiki/Plugin/websetup.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/websetup.pm b/IkiWiki/Plugin/websetup.pm
index e477bcc20..76ca1c9e2 100644
--- a/IkiWiki/Plugin/websetup.pm
+++ b/IkiWiki/Plugin/websetup.pm
@@ -138,9 +138,9 @@ sub showfields ($$$@) {
my $value=$config{$key};
- if ($info{safe} && (ref $value eq 'ARRAY' || ref $info{example} eq 'ARRAY')) {
- $value=[(ref $value eq 'ARRAY' ? map { Encode::encode_utf8($_) } @{$value} : ""),
- "", ""]; # blank items for expansion
+ if (ref $value eq 'ARRAY' || ref $info{example} eq 'ARRAY') {
+ $value=[(ref $value eq 'ARRAY' ? map { Encode::encode_utf8($_) } @{$value} : "")];
+ push @$value, "", "" if $info{safe}; # blank items for expansion
}
else {
$value=Encode::encode_utf8($value);