We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9022958 commit 459e612Copy full SHA for 459e612
resources/lib/UnitySite.php
@@ -56,20 +56,10 @@ public static function testValidSSHKey($key_str)
56
if ($key_str == "") {
57
return false;
58
}
59
- // https://github.com/phpseclib/phpseclib/issues/2077
60
- // key loader still throws exception, this just mutes a warning for phpunit
61
- if (preg_match("/^[0-9]+$/", $key_str)) {
62
- return false;
63
- }
64
- // https://github.com/phpseclib/phpseclib/issues/2076
65
66
- if (!is_null(@json_decode($key_str))) {
67
68
69
try {
70
PublicKeyLoader::load($key_str);
71
return true;
72
- } catch (\Exception $e) {
+ } catch (\Throwable $e) {
73
74
75
0 commit comments