summaryrefslogtreecommitdiff
path: root/webfinger.c
diff options
context:
space:
mode:
authorGravatar default2023-01-12 09:28:02 +0100
committerGravatar default2023-01-12 09:28:02 +0100
commitbb0d8f2a2755af5e11b46d32be84155ba71ea534 (patch)
tree86eb998f66c875dc7d2d40ba3021a3e69ffe9400 /webfinger.c
parentShow the More... link above the 'About this site'. (diff)
downloadpenes-snac2-bb0d8f2a2755af5e11b46d32be84155ba71ea534.tar.gz
penes-snac2-bb0d8f2a2755af5e11b46d32be84155ba71ea534.tar.xz
penes-snac2-bb0d8f2a2755af5e11b46d32be84155ba71ea534.zip
Backport from xs.
Diffstat (limited to 'webfinger.c')
-rw-r--r--webfinger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/webfinger.c b/webfinger.c
index 928af22..6a6133d 100644
--- a/webfinger.c
+++ b/webfinger.c
@@ -33,7 +33,7 @@ int webfinger_request(char *qs, char **actor, char **user)
33 xs *s = xs_dup(qs); 33 xs *s = xs_dup(qs);
34 34
35 if (xs_startswith(s, "@")) 35 if (xs_startswith(s, "@"))
36 s = xs_crop(s, 1, 0); 36 s = xs_crop_i(s, 1, 0);
37 37
38 l = xs_split_n(s, "@", 1); 38 l = xs_split_n(s, "@", 1);
39 39
@@ -141,7 +141,7 @@ int webfinger_get_handler(d_char *req, char *q_path,
141 141
142 /* strip a possible leading @ */ 142 /* strip a possible leading @ */
143 if (xs_startswith(an, "@")) 143 if (xs_startswith(an, "@"))
144 an = xs_crop(an, 1, 0); 144 an = xs_crop_i(an, 1, 0);
145 145
146 l = xs_split_n(an, "@", 1); 146 l = xs_split_n(an, "@", 1);
147 147