Commit 3e4a02b5 authored by Phil Höfer's avatar Phil Höfer

Merge branch '789-domainausschluss-operator-funktioniert-nicht' into 'development'

Resolve "Domainausschluss: *-Operator funktioniert nicht"

Closes #789

See merge request open-source/MetaGer!1300
parents db55785d c02ea638
......@@ -1162,7 +1162,7 @@ class MetaGer
private function searchCheckDomainBlacklist($request)
// matches '[... ]-site:*[ ...]'
while (preg_match("/(^|.*?\s)-site:(\*\.\S+)(\s.*|$)/si", $this->q, $match)) {
while (preg_match("/(^|.*?\s)-site:\*\.(\S+)(\s.*|$)/si", $this->q, $match)) {
$this->domainBlacklist[] = $match[2];
$this->q = $match[1] . $match[3];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment