Page MenuHomeDevCentral

D2447.diff
No OneTemporary

D2447.diff

diff --git a/lib/GetPublicKeys.php b/lib/GetPublicKeys.php
--- a/lib/GetPublicKeys.php
+++ b/lib/GetPublicKeys.php
@@ -91,6 +91,11 @@
public static function getAuthorizedKey ($server) {
$line = "";
+ $key = self::getPublicKey($server->key);
+ if ($key == "") {
+ throw new Exception("Can't fetch public key $server->key");
+ }
+
//Options
if ($server->restrictCommand !== null) {
$line .= self::getAuthorizedKeyCommandOption($server->restrictCommand);
@@ -102,7 +107,7 @@
$line .= ' ';
//Key
- $line .= self::getPublicKey($server->key);
+ $line .= $key;
$line .= ' ';
$line .= $server->comment;

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 08:28 (20 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264374
Default Alt Text
D2447.diff (729 B)

Event Timeline