[icinga-checkins] icinga.org: icingaweb2/bugfix/ preferences-and-navigation-items-stored-in-ini-files-rely-on-case-sensitive-usernames-11051 : Implement FilterMatchCaseInsensitive

git at icinga.org git at icinga.org
Thu Feb 11 12:14:49 CET 2016


Module: icingaweb2
Branch: bugfix/preferences-and-navigation-items-stored-in-ini-files-rely-on-case-sensitive-usernames-11051
Commit: 8ebc92ee44b2f5f57e86324b8f02d5ca03026728
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=8ebc92ee44b2f5f57e86324b8f02d5ca03026728

Author: Alexander A. Klimov <alexander.klimov at netways.de>
Date:   Thu Feb 11 11:59:57 2016 +0100

Implement FilterMatchCaseInsensitive

refs #11051

---

 library/Icinga/Data/Filter/FilterMatchCaseInsensitive.php |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/library/Icinga/Data/Filter/FilterMatchCaseInsensitive.php b/library/Icinga/Data/Filter/FilterMatchCaseInsensitive.php
new file mode 100644
index 0000000..7d8f371
--- /dev/null
+++ b/library/Icinga/Data/Filter/FilterMatchCaseInsensitive.php
@@ -0,0 +1,12 @@
+<?php
+/* Icinga Web 2 | (c) 2016 Icinga Development Team | GPLv2+ */
+
+namespace Icinga\Data\Filter;
+
+class FilterMatchCaseInsensitive extends FilterMatch
+{
+    public function __construct($column, $sign, $expression) {
+        parent::__construct($column, $sign, $expression);
+        $this->caseSensitive = false;
+    }
+}



More information about the icinga-checkins mailing list