1
0
Fork 0

Merge pull request #9048 from annando/fix-tag-scheme

Fix malformatted tag scheme
This commit is contained in:
Tobias Diekershoff 2020-08-22 13:21:54 +02:00 committed by GitHub
commit 2475058cc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View 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']]);

View 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);
}
}