mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
mastoapi: Fixed login bug.
This commit is contained in:
parent
be935b32c6
commit
6bcb248254
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ int oauth_post_handler(const xs_dict *req, const char *q_path,
|
||||||
*body = xs_dup(code);
|
*body = xs_dup(code);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (xs_str_in(redir, "?"))
|
if (xs_str_in(redir, "?") != -1)
|
||||||
*body = xs_fmt("%s&code=%s", redir, code);
|
*body = xs_fmt("%s&code=%s", redir, code);
|
||||||
else
|
else
|
||||||
*body = xs_fmt("%s?code=%s", redir, code);
|
*body = xs_fmt("%s?code=%s", redir, code);
|
||||||
|
|
Loading…
Reference in a new issue