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

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

Resolve "Domainausschluss: *-Operator funktioniert nicht"

Closes #789

See merge request !1300
parents db55785d c02ea638
No related branches found
No related tags found
1 merge request!1300Resolve "Domainausschluss: *-Operator funktioniert nicht"
......@@ -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];
}
......
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