Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3779493
D2447.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
729 B
Referenced Files
None
Subscribers
None
D2447.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D2447: Fail if key isn't available
Attached
Detach File
Event Timeline
Log In to Comment