snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit d5f0acaf87ed634c6bed503f2319cc4fc508381e
parent 836b66358dac3abdf5e81b441db1bf40055ac57b
Author: default <nobody@localhost>
Date:   Thu, 19 Sep 2024 15:02:00 +0200

Log fake uids in webfinger_request_fake().

Diffstat:
Mwebfinger.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/webfinger.c b/webfinger.c @@ -134,9 +134,12 @@ int webfinger_request_fake(const char *qs, xs_str **actor, xs_str **user) xs *l = xs_split(qs, "/"); if (xs_list_len(l) > 3) { + srv_debug(1, xs_fmt("webfinger error querying %s %d -- faking it", qs, status)); + /* i'll end up in hell for this */ *user = xs_fmt("%s@%s", xs_list_get(l, -1), xs_list_get(l, 2)); status = HTTP_STATUS_RESET_CONTENT; + } } }