Fix test
This commit is contained in:
parent
80592f6365
commit
2c32429d8d
|
@ -2945,9 +2945,13 @@ class Item
|
||||||
{
|
{
|
||||||
// Make sure that for example site parameters aren't used when testing if the link is contained in the body
|
// Make sure that for example site parameters aren't used when testing if the link is contained in the body
|
||||||
$urlparts = parse_url($url);
|
$urlparts = parse_url($url);
|
||||||
unset($urlparts['query']);
|
if (!empty($urlparts)) {
|
||||||
unset($urlparts['fragment']);
|
unset($urlparts['query']);
|
||||||
$url = Uri::fromParts($urlparts);
|
unset($urlparts['fragment']);
|
||||||
|
$url = Uri::fromParts($urlparts);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Remove media links to only search in embedded content
|
// Remove media links to only search in embedded content
|
||||||
// @todo Check images for image link, audio for audio links, ...
|
// @todo Check images for image link, audio for audio links, ...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user