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

fixes #11906
This commit is contained in:
Thomas Gelf 2016-06-11 00:41:35 +02:00
parent 706e916aad
commit 3b8b41c3f6

View File

@ -115,7 +115,7 @@ class IcingaCommand extends IcingaObject
{ {
return $path[0] === '/' return $path[0] === '/'
|| $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) public static function setPluginDir($pluginDir)