[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaCommand: allow lowercase drives (e.g. c:)

git at icinga.org git at icinga.org
Fri Jun 10 00:42:26 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 3b8b41c3f65b147d43691b942799f09de00fedb0
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=3b8b41c3f65b147d43691b942799f09de00fedb0

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sat Jun 11 00:41:35 2016 +0200

IcingaCommand: allow lowercase drives (e.g. c:)

fixes #11906

---

 library/Director/Objects/IcingaCommand.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Director/Objects/IcingaCommand.php b/library/Director/Objects/IcingaCommand.php
index 9ba9a6d..aefb8c3 100644
--- a/library/Director/Objects/IcingaCommand.php
+++ b/library/Director/Objects/IcingaCommand.php
@@ -115,7 +115,7 @@ class IcingaCommand extends IcingaObject
     {
          return $path[0] === '/'
             || $path[0] === '\\'
-            || preg_match('/^[A-Z]:\\\/', substr($path, 0, 3));
+            || preg_match('/^[A-Za-z]:\\\/', substr($path, 0, 3));
     }
 
     public static function setPluginDir($pluginDir)



More information about the icinga-checkins mailing list