Skip to content
Snippets Groups Projects
Commit f25eb61f authored by Phil Höfer's avatar Phil Höfer
Browse files

Implement Conditional URL Block

parent a7d4cbb6
No related branches found
No related tags found
2 merge requests!2227Development,!2226Resolve "Implement Conditional URL Blocking"
......@@ -294,7 +294,10 @@ class Result
{
if (
($this->strippedHost !== "" && (in_array($this->strippedHost, $metager->getDomainBlacklist()) ||
in_array($this->strippedLink, $metager->getUrlBlacklist())))
in_array($this->strippedLink, $metager->getUrlBlacklist()) ||
in_array($this->strippedLink . "|" . app(SearchSettings::class)->q, $metager->getUrlBlacklist())
)
)
) {
return true;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment