Commit 21fdd693 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 !1300
parents 12dbcba1 e84eac87
......@@ -1162,7 +1162,7 @@ class MetaGer
private function searchCheckDomainBlacklist($request)
{
// matches '[... ]-site:*.test.de[ ...]'
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