]> Sergey Matveev's repositories - public-inbox.git/commitdiff
wwwtext: show multiple infourl values properly
authorEric Wong <e@yhbt.net>
Sat, 1 Feb 2020 09:12:12 +0000 (09:12 +0000)
committerEric Wong <e@yhbt.net>
Sat, 1 Feb 2020 21:09:52 +0000 (21:09 +0000)
This is now an array, so ensure it's shown properly in the
sample config, instead of "ARRAY(0xI8BADBEEF)" or similar.

Fixes: 1988d730c0088e8b "config: support multi-value inbox.*.*url"
lib/PublicInbox/WwwText.pm

index 2e4aeec0c19e6f85fe8782454d84f33e2aa25f8d..ace7f9d73231d0c22388f94f02c757ccd9d12d25 100644 (file)
@@ -148,12 +148,12 @@ sub inbox_config ($$$) {
        ; instead of "inboxdir", both remain supported after 1.2
        mainrepo = /path/to/top-level-inbox
 EOS
-       for my $k (qw(address listid)) {
+       for my $k (qw(address listid infourl)) {
                defined(my $v = $ibx->{$k}) or next;
                $$txt .= "\t$k = $_\n" for @$v;
        }
 
-       for my $k (qw(filter infourl newsgroup obfuscate replyto watchheader)) {
+       for my $k (qw(filter newsgroup obfuscate replyto watchheader)) {
                defined(my $v = $ibx->{$k}) or next;
                $$txt .= "\t$k = $v\n";
        }