From 5eeca432fe3f2f069689df3b4778213f11707055 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 29 Sep 2019 18:59:03 +0000 Subject: [PATCH] removed unused "f" parameter --- src/Model/Contact.php | 2 +- src/Model/Profile.php | 2 +- src/Module/Debug/Localtime.php | 2 +- src/Module/Magic.php | 3 +-- src/Protocol/Diaspora.php | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 816c2a1864..74534fc371 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1214,7 +1214,7 @@ class Contact extends BaseObject } if (($contact['network'] == Protocol::DFRN) && !$contact['self'] && empty($contact['pending'])) { - $poke_link = System::baseUrl() . '/poke/?f=&c=' . $contact['id']; + $poke_link = System::baseUrl() . '/poke/?c=' . $contact['id']; } $contact_url = System::baseUrl() . '/contact/' . $contact['id']; diff --git a/src/Model/Profile.php b/src/Model/Profile.php index 4ca6ca66bd..4261d62e7a 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -1087,7 +1087,7 @@ class Profile $basepath = Contact::getBasepath($contact['url']); if ($basepath != $a->getBaseURL() && !strstr($dest, '/magic')) { - $magic_path = $basepath . '/magic' . '?f=&owa=1&dest=' . $dest . '&' . $addr_request; + $magic_path = $basepath . '/magic' . '?owa=1&dest=' . $dest . '&' . $addr_request; // We have to check if the remote server does understand /magic without invoking something $serverret = Network::curl($basepath . '/magic'); diff --git a/src/Module/Debug/Localtime.php b/src/Module/Debug/Localtime.php index 36eaa17ac8..7af9cb8dad 100644 --- a/src/Module/Debug/Localtime.php +++ b/src/Module/Debug/Localtime.php @@ -39,7 +39,7 @@ class Localtime extends BaseModule $output .= '

' . L10n::t('Converted localtime: %s', $app->data['mod-localtime']) . '

'; } - $output .= '
'; + $output .= ''; $output .= '

' . L10n::t('Please select your timezone:') . '

'; $output .= Temporal::getTimezoneSelect(defaults($_REQUEST, 'timezone', Installer::DEFAULT_TZ)); $output .= '
'; diff --git a/src/Module/Magic.php b/src/Module/Magic.php index 0722da3cd7..4cb3dc7328 100644 --- a/src/Module/Magic.php +++ b/src/Module/Magic.php @@ -97,8 +97,7 @@ class Magic extends BaseModule } else { $token = $j['token']; } - $x = strpbrk($dest, '?&'); - $args = (($x) ? '&owt=' . $token : '?f=&owt=' . $token); + $args = (strpbrk($dest, '?&') ? '&' : '?') . 'owt=' . $token; Logger::info('Redirecting', ['path' => $dest . $args]); System::externalRedirect($dest . $args); diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index 9e074e8a9a..587b34c3fe 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -1608,7 +1608,7 @@ class Diaspora } if (self::isRedmatrix($contact["url"])) { - return $contact["url"] . "/?f=&mid=" . $guid; + return $contact["url"] . "/?mid=" . $guid; } if ($parent_guid != '') {