[icinga-checkins] icinga.org: icinga-web/master: Fix too greedy regex on collecting resource files

git at icinga.org git at icinga.org
Fri Nov 25 12:31:55 CET 2011


Module: icinga-web
Branch: master
Commit: af126ae3b35eab0bd228de01e746e858c3ed71fe
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=af126ae3b35eab0bd228de01e746e858c3ed71fe

Author: Eric Lippmann <eric.lippmann at netways.de>
Date:   Fri Nov 25 01:16:07 2011 +0100

Fix too greedy regex on collecting resource files

---

 .../config/AppKitResourceConfigHandler.class.php   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/modules/AppKit/lib/config/AppKitResourceConfigHandler.class.php b/app/modules/AppKit/lib/config/AppKitResourceConfigHandler.class.php
index 4ef81d4..ca7c11b 100644
--- a/app/modules/AppKit/lib/config/AppKitResourceConfigHandler.class.php
+++ b/app/modules/AppKit/lib/config/AppKitResourceConfigHandler.class.php
@@ -44,7 +44,7 @@ class AppKitResourceConfigHandler extends AgaviXmlConfigHandler {
                                       array_keys(iterator_to_array(
                                                      AppKitIteratorUtil::RegexRecursiveDirectoryIterator(
                                                          $r,
-                                                         sprintf('/\%s/i', $sfx)
+                                                         sprintf('/^[^.].+\%s$/i', $sfx)
                                                      )
                                                  ))
                                   );





More information about the icinga-checkins mailing list