mirror of
https://github.com/friendica/friendica
synced 2025-05-06 06:24:11 +02:00
Issue 9303: Detect AP accesses as backend, prevent ping pong
This commit is contained in:
parent
97f07b7518
commit
73a7df85f7
3 changed files with 25 additions and 5 deletions
|
@ -448,7 +448,7 @@ class App
|
|||
Core\Worker::executeIfIdle();
|
||||
}
|
||||
|
||||
if ($this->mode->isNormal()) {
|
||||
if ($this->mode->isNormal() && !$this->mode->isBackend()) {
|
||||
$requester = HTTPSignature::getSigner('', $_SERVER);
|
||||
if (!empty($requester)) {
|
||||
Profile::addVisitorCookieForHandle($requester);
|
||||
|
@ -456,7 +456,7 @@ class App
|
|||
}
|
||||
|
||||
// ZRL
|
||||
if (!empty($_GET['zrl']) && $this->mode->isNormal()) {
|
||||
if (!empty($_GET['zrl']) && $this->mode->isNormal() && !$this->mode->isBackend()) {
|
||||
if (!local_user()) {
|
||||
// Only continue when the given profile link seems valid
|
||||
// Valid profile links contain a path with "/profile/" and no query parameters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue