diff options
author | default <nobody@localhost> | 2024-04-27 08:30:56 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-04-27 08:30:56 +0200 |
commit | 6bcb248254b32f86e6f07a73ef2db632e79a01d7 (patch) | |
tree | dca2b7597d2eaf2d9e69a9677539482df199176c | |
parent | be935b32c6a83de5ec39519bcb06e37edc373a2f (diff) |
mastoapi: Fixed login bug.
-rw-r--r-- | mastoapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -291,7 +291,7 @@ int oauth_post_handler(const xs_dict *req, const char *q_path, *body = xs_dup(code); } else { - if (xs_str_in(redir, "?")) + if (xs_str_in(redir, "?") != -1) *body = xs_fmt("%s&code=%s", redir, code); else *body = xs_fmt("%s?code=%s", redir, code); |