]> git.mxchange.org Git - friendica.git/commitdiff
Clarify comment and log message
authorDean Townsley <dean@townsley.com>
Sun, 23 Jun 2019 00:08:34 +0000 (19:08 -0500)
committerDean Townsley <dean@townsley.com>
Sun, 23 Jun 2019 00:08:34 +0000 (19:08 -0500)
src/Protocol/DFRN.php

index e47cfc72c0feff37b670e7abd7dae2d62d02eddc..91ca2545db8f0f983156f05ec978f38ab0770895 100644 (file)
@@ -2899,7 +2899,7 @@ class DFRN
        {
                // prevent looping
                if (!empty($_REQUEST['redir'])) {
-                       Logger::log('autoRedir might be looping because is redir', Logger::DEBUG);
+                       Logger::log('autoRedir might be looping because redirect has been redirected', Logger::DEBUG);
                        // looping prevention also appears to sometimes prevent authentication for images
                        // because browser may have multiple connections open and load an image on a connection
                        // whose session wasn't updated when a previous redirect authenticated
@@ -2943,8 +2943,9 @@ class DFRN
                                return;
                        }
                        // test if redirect authentication already succeeded
-                       // Note that "contact" in the sense used in $contact_nick and the sense in the $remote[]["cid"]
-                       // in the session are opposite.  In the session variable the user currently fetching is the contact
+                       // Note that "contact" in the sense used in the $contact_nick argument to this function
+                       // and the sense in the $remote[]["cid"] in the session are opposite.
+                       // In the session variable the user currently fetching is the contact
                        // while $contact_nick is the nick of tho user who owns the stuff being fetched.
                        foreach (\Friendica\Core\Session::get('remote', []) as $visitor) {
                                if ($visitor['uid'] == $contact_uid && $visitor['cid'] == $r[0]['id']) {