Module: check_mk
Branch: master
Commit: fb93e7138d05f017455e569aaa5b8cadbbb5f91b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fb93e7138d05f0…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Oct 4 16:33:36 2012 +0200
Multisite: Convert qicksearch text to regex when accessing livestatus
---
ChangeLog | 1 +
web/htdocs/js/search.js | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a7f0fbd..124aa05 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@
* FIX: Fixed login/login confusions with index page caching
* FIX: Speed-o-meter: Fixed calculation of Check_MK passive check invervals
* Removed focus of "Full name" attribute on editing a contact
+ * Quicksearch: Convert search text to regex when accessing livestatus
BI:
* Added missing localizations
diff --git a/web/htdocs/js/search.js b/web/htdocs/js/search.js
index eca8609..d01ef6a 100644
--- a/web/htdocs/js/search.js
+++ b/web/htdocs/js/search.js
@@ -303,6 +303,7 @@ function mkSearchGetSearchObjects(objType) {
}
function mkSearchGetUrl(objType, objName, objSite, numMatches) {
+ objName = objName.replace(/\*/g,"\.\*");
if (numMatches == null)
numMatches = 0;