mirror of
https://github.com/friendica/friendica
synced 2024-11-17 23:03:41 +00:00
Merge pull request #14499 from annando/issue-14478-2
Issue 14478: Fix OAuth registration with Buffer
This commit is contained in:
commit
4c3c4bd58d
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