gui parsing fix

This commit is contained in:
SJ 2014-06-12 15:07:34 +02:00
parent 3a633cad9e
commit 9d948b439f

View File

@ -329,13 +329,15 @@ class ModelSearchSearch extends Model {
if(!isset($data['search'])) { return $a; }
$s = preg_replace("/:/", ": ", $data['search']);
$s = preg_replace("/https{0,1}:/", "httpX", $data['search']);
$s = preg_replace("/:/", ": ", $s);
$s = preg_replace("/,/", " ", $s);
$s = preg_replace("/\(/", "( ", $s);
$s = preg_replace("/\)/", ") ", $s);
$s = preg_replace("/OR/", "|", $s);
$s = preg_replace("/AND/", "", $s);
$s = preg_replace("/\s{1,}/", " ", $s);
$s = preg_replace("/httpX/", "http:", $s);
$b = explode(" ", $s);
while(list($k, $v) = each($b)) {