|
@@ -40,11 +40,11 @@ discard block |
|
|
block discarded – undo |
|
40
|
40
|
static::$knownHostsFile = $this->config['KnownHostsFile']; |
|
41
|
41
|
} elseif (static::$strictHostKeyChecking) { |
|
42
|
42
|
// default KnownHostsFile if StrictHostKeyChecking enabled |
|
43
|
|
- static::$knownHostsFile = Configuration::projectDir() . 'known_hosts'; |
|
|
43
|
+ static::$knownHostsFile = Configuration::projectDir().'known_hosts'; |
|
44
|
44
|
} |
|
45
|
45
|
// check that a KnownHostsFile exists if StrictHostKeyChecking enabled |
|
46
|
46
|
if (static::$strictHostKeyChecking && !file_exists(static::$knownHostsFile)) { |
|
47
|
|
- throw new ModuleConfigException(get_class($this), 'KnownHostsFile "' . static::$knownHostsFile . '" not found'); |
|
|
47
|
+ throw new ModuleConfigException(get_class($this), 'KnownHostsFile "'.static::$knownHostsFile.'" not found'); |
|
48
|
48
|
} |
|
49
|
49
|
} |
|
50
|
50
|
|
|
@@ -108,7 +108,7 @@ discard block |
|
|
block discarded – undo |
|
108
|
108
|
$knownHost = false; |
|
109
|
109
|
try { |
|
110
|
110
|
$fingerprint = ssh2_fingerprint($connection, SSH2_FINGERPRINT_MD5); |
|
111
|
|
- if (file_exists(static::$knownHostsFile)){ |
|
|
111
|
+ if (file_exists(static::$knownHostsFile)) { |
|
112
|
112
|
$file = new SplFileObject(static::$knownHostsFile); |
|
113
|
113
|
$file->setFlags(SplFileObject::READ_CSV); |
|
114
|
114
|
$file->setCsvControl(' '); |
Please login to merge, or discard this patch.