Fix malformatted tag scheme
This commit is contained in:
parent
61a2b225bb
commit
22027f8451
|
@ -93,6 +93,10 @@ class Tag
|
||||||
return;
|
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) {
|
if (!$probing) {
|
||||||
$condition = ['nurl' => Strings::normaliseLink($url), 'uid' => 0, 'deleted' => false];
|
$condition = ['nurl' => Strings::normaliseLink($url), 'uid' => 0, 'deleted' => false];
|
||||||
$contact = DBA::selectFirst('contact', ['id'], $condition, ['order' => ['id']]);
|
$contact = DBA::selectFirst('contact', ['id'], $condition, ['order' => ['id']]);
|
||||||
|
|
|
@ -2408,7 +2408,7 @@ class DFRN
|
||||||
$parts = explode(":", $scheme);
|
$parts = explode(":", $scheme);
|
||||||
if ((count($parts) >= 4) && (array_shift($parts) == "X-DFRN")) {
|
if ((count($parts) >= 4) && (array_shift($parts) == "X-DFRN")) {
|
||||||
$termurl = array_pop($parts);
|
$termurl = array_pop($parts);
|
||||||
$termurl = array_pop($parts) . $termurl;
|
$termurl = array_pop($parts) . ':' . $termurl;
|
||||||
Tag::store($item['uri-id'], Tag::IMPLICIT_MENTION, $term, $termurl);
|
Tag::store($item['uri-id'], Tag::IMPLICIT_MENTION, $term, $termurl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user