mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 04:30:12 +01:00
gui parsing fix
This commit is contained in:
parent
3a633cad9e
commit
9d948b439f
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user