Welcome to little lamb

Code » ssp » commit 793e22a

list: Always quote site's name

author Olivier Brunel
2023-04-18 08:12:04 UTC
committer Olivier Brunel
2023-04-18 08:12:04 UTC
parent 3804b802f101299541236a3f1e91651d2bcbd3c4

list: Always quote site's name

Even in basic "list" mode, since they can contain unprintable
characters.

src/ssp/list.c +1 -1

diff --git a/src/ssp/list.c b/src/ssp/list.c
index c18f9ed..14f7be4 100644
--- a/src/ssp/list.c
+++ b/src/ssp/list.c
@@ -97,7 +97,7 @@ list_main(int argc, const char *argv[], const char *env[], const char usage[], v
             show_site(list.options & OPT_SECRET, ctx);
         } else {
             if (i) add(list.sep);
-            add(db_site(ctx));
+            add(ESC, db_site(ctx), ESC);
         }
         i = 1;
     }