mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:10:12 +00:00
Issue 5541: Don't do magic things when the remote site doesn't support it
This commit is contained in:
parent
c5040f4daa
commit
4921303133
2 changed files with 6 additions and 2 deletions
|
@ -1050,7 +1050,11 @@ class Profile
|
|||
$basepath = $urlarr[0];
|
||||
|
||||
if ($basepath != System::baseUrl() && !strstr($dest, '/magic') && !strstr($dest, '/rmagic')) {
|
||||
goaway($basepath . '/magic' . '?f=&owa=1&dest=' . $dest);
|
||||
$magic_path = $basepath . '/magic' . '?f=&owa=1&dest=' . $dest;
|
||||
$serverret = Network::curl($magic_path);
|
||||
if (!empty($serverret['success'])) {
|
||||
goaway($magic_path);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue