Separate search strings with "%09" in URIs, as per RFC - sacc - sacc(omys), sim… | |
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit aeb6afa41ddf42eeb865079c7d218a2cbdfe2ef3 | |
parent 864e9c534956afb2a429174e10cc9b4d6196fa05 | |
Author: Quentin Rameau <[email protected]> | |
Date: Mon, 28 Oct 2019 23:37:31 +0100 | |
Separate search strings with "%09" in URIs, as per RFC | |
Diffstat: | |
M ui_ti.c | 2 +- | |
M ui_txt.c | 2 +- | |
2 files changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/ui_ti.c b/ui_ti.c | |
@@ -229,7 +229,7 @@ displayuri(Item *item) | |
item->type, item->selector); | |
} | |
if (n < sizeof(bufout) && item->type == '7' && item->tag) { | |
- n += snprintf(bufout+n, sizeof(bufout)-n, " %s", | |
+ n += snprintf(bufout+n, sizeof(bufout)-n, "%%09%s", | |
item->tag + strlen(item->selector)); | |
} | |
break; | |
diff --git a/ui_txt.c b/ui_txt.c | |
@@ -218,7 +218,7 @@ printuri(Item *item, size_t i) | |
item->type, item->selector); | |
} | |
if (n < sizeof(bufout) && item->type == '7' && item->tag) { | |
- n += snprintf(bufout+n, sizeof(bufout)-n, " %s", | |
+ n += snprintf(bufout+n, sizeof(bufout)-n, "%%09%s", | |
item->tag + strlen(item->selector)); | |
} | |
break; |