From 9d948b439fe226d85ffe0d4cd28b4e4fefed478e Mon Sep 17 00:00:00 2001 From: SJ Date: Thu, 12 Jun 2014 15:07:34 +0200 Subject: [PATCH] gui parsing fix --- webui/model/search/search.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webui/model/search/search.php b/webui/model/search/search.php index 63a8de57..cb567826 100644 --- a/webui/model/search/search.php +++ b/webui/model/search/search.php @@ -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)) {