mirror of
https://github.com/friendica/friendica
synced 2024-11-11 14:22:54 +00:00
ZRL: Simplify the code structure
This commit is contained in:
parent
f1d6e7ebb4
commit
0844e3f8a6
1 changed files with 18 additions and 20 deletions
|
@ -600,8 +600,7 @@ class App
|
|||
}
|
||||
|
||||
// ZRL
|
||||
if (!empty($_GET['zrl']) && $this->mode->isNormal() && !$this->mode->isBackend()) {
|
||||
if (!local_user()) {
|
||||
if (!empty($_GET['zrl']) && $this->mode->isNormal() && !$this->mode->isBackend() && !local_user()) {
|
||||
// Only continue when the given profile link seems valid
|
||||
// Valid profile links contain a path with "/profile/" and no query parameters
|
||||
if ((parse_url($_GET['zrl'], PHP_URL_QUERY) == "") &&
|
||||
|
@ -624,7 +623,6 @@ class App
|
|||
throw new HTTPException\ForbiddenException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($_GET['owt']) && $this->mode->isNormal()) {
|
||||
$token = $_GET['owt'];
|
||||
|
|
Loading…
Reference in a new issue