Skip to content
Snippets Groups Projects
Commit 859f7c12 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '689-gross-und-kleinschreibung-wird-bei-der-phrasensuche-verworfen' into 'development'

Resolve "Groß- und Kleinschreibung wird bei der Phrasensuche verworfen"

Closes #689

See merge request !1188
parents a40dbefd 3ded6a78
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
......@@ -906,7 +906,7 @@ class MetaGer
}
# Sucheingabe
$this->eingabe = trim($request->input('eingabe', ''));
$this->q = mb_strtolower($this->eingabe, "UTF-8");
$this->q = $this->eingabe;
# IP
$this->ip = $request->ip();
# Unser erster Schritt wird sein, IP-Adresse und USER-Agent zu anonymisieren, damit
......@@ -1180,7 +1180,7 @@ class MetaGer
// matches '[... ]"test satz"[ ...]'
while (preg_match("/(^|.+\s)\"(.+)\"(?:\s(.+)|($))/si", $tmp, $match)) {
$tmp = $match[1] . $match[3];
$this->phrases[] = strtolower($match[2]);
$this->phrases[] = $match[2];
}
foreach ($this->phrases as $phrase) {
$p .= "\"$phrase\", ";
......
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