[icinga-checkins] icinga.org: icinga-web/jmosshammer/default: * Added asterix before and after value if no asterisk given (fixes #1213)

git at icinga.org git at icinga.org
Sun Mar 20 11:26:09 CET 2011


Module: icinga-web
Branch: jmosshammer/default
Commit: 024f39262f1a0a7bab07cd5dc7afe96a3ca7a9a7
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=024f39262f1a0a7bab07cd5dc7afe96a3ca7a9a7

Author: Marius Hein <marius.hein at netways.de>
Date:   Fri Feb 11 10:47:33 2011 +0100

* Added asterix before and after value if no asterisk given (fixes #1213)

---

 .../lib/template/IcingaTemplateWorker.class.php    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/modules/Web/lib/template/IcingaTemplateWorker.class.php b/app/modules/Web/lib/template/IcingaTemplateWorker.class.php
index f7ae3c7..eb442b4 100755
--- a/app/modules/Web/lib/template/IcingaTemplateWorker.class.php
+++ b/app/modules/Web/lib/template/IcingaTemplateWorker.class.php
@@ -440,7 +440,7 @@ class IcingaTemplateWorker {
 		// Add or replace some asterix within count
 		if ($op == AppKitSQLConstants::SQL_OP_CONTAIN || $op == AppKitSQLConstants::SQL_OP_NOTCONTAIN) {
 			if (strpos($val, '*') === false) {
-				$val = $val. '%';
+				$val = '%'. $val. '%';
 			}
 			else {
 				$val = str_replace('*', '%', $val);





More information about the icinga-checkins mailing list