mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:00:15 +00:00
redir - clicking on title of own post leads to access denied error
Fixes friendica/friendica#8769
This commit is contained in:
parent
5f43f56f72
commit
da82c3aea4
1 changed files with 4 additions and 0 deletions
|
@ -190,6 +190,10 @@ function redir_check_url(string $contact_url, string $url)
|
|||
}
|
||||
|
||||
$url_host = parse_url($url, PHP_URL_HOST);
|
||||
if (empty($url_host)) {
|
||||
$url_host = parse_url(DI::baseUrl(), PHP_URL_HOST);
|
||||
}
|
||||
|
||||
$contact_url_host = parse_url($contact_url, PHP_URL_HOST);
|
||||
|
||||
if ($url_host == $contact_url_host) {
|
||||
|
|
Loading…
Reference in a new issue