]> git.mxchange.org Git - friendica.git/commitdiff
Fix malformatted tag scheme
authorMichael <heluecht@pirati.ca>
Sat, 22 Aug 2020 05:59:19 +0000 (05:59 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 22 Aug 2020 05:59:19 +0000 (05:59 +0000)
src/Model/Tag.php
src/Protocol/DFRN.php

index a48f2cb92b6dc71308576e274d78d1fb45667dc1..7eb475d727009e8642524895ed2b8a90597ead1c 100644 (file)
@@ -93,6 +93,10 @@ class Tag
                                return;
                        }
 
+                       if ((substr($url, 0, 7) == 'https//') || (substr($url, 0, 6) == 'http//')) {
+                               Logger::notice('Wrong scheme in url', ['url' => $url, 'callstack' => System::callstack(20)]);
+                       }
+
                        if (!$probing) {
                                $condition = ['nurl' => Strings::normaliseLink($url), 'uid' => 0, 'deleted' => false];
                                $contact = DBA::selectFirst('contact', ['id'], $condition, ['order' => ['id']]);
index b09c1bea0f8672479743c4d220637071a83be23c..68824aad8b3f95bb96300e6c46baf9ee9a8aad70 100644 (file)
@@ -2408,7 +2408,7 @@ class DFRN
                                        $parts = explode(":", $scheme);
                                        if ((count($parts) >= 4) && (array_shift($parts) == "X-DFRN")) {
                                                $termurl = array_pop($parts);
-                                               $termurl = array_pop($parts) . $termurl;
+                                               $termurl = array_pop($parts) . ':' . $termurl;
                                                Tag::store($item['uri-id'], Tag::IMPLICIT_MENTION, $term, $termurl);
                                        }
                                }