mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
Issue 14478: Fix OAuth registration with Buffer
This commit is contained in:
parent
3b6030346f
commit
63b1adecea
1 changed files with 3 additions and 2 deletions
|
@ -129,8 +129,9 @@ class OAuth
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
// The redirect_uri could contain several URI that are separated by spaces.
|
// The redirect_uri could contain several URI that are separated by spaces or new lines.
|
||||||
if (($application['redirect_uri'] != $redirect_uri) && !in_array($redirect_uri, explode(' ', $application['redirect_uri']))) {
|
$uris = explode(' ', str_replace(["\n", "\r", "\t"], ' ', $application['redirect_uri']));
|
||||||
|
if (!in_array($redirect_uri, $uris)) {
|
||||||
Logger::warning('Redirection uri does not match', ['redirect_uri' => $redirect_uri, 'application-redirect_uri' => $application['redirect_uri']]);
|
Logger::warning('Redirection uri does not match', ['redirect_uri' => $redirect_uri, 'application-redirect_uri' => $application['redirect_uri']]);
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue