Skip to content

Commit e714244

Browse files
committed
remove digits check
1 parent 81a4a21 commit e714244

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

resources/lib/UnitySite.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,8 @@ public static function testValidSSHKey($key_str)
5757
if ($key_str == "") {
5858
return false;
5959
}
60-
// https://github.com/phpseclib/phpseclib/issues/2077
61-
// if (preg_match("/^[0-9]+$/", $key_str)) {
62-
// return false;
63-
// }
6460
// https://github.com/phpseclib/phpseclib/issues/2076
61+
// https://github.com/phpseclib/phpseclib/issues/2077
6562
// there are actually valid JSON keys (JWK), but I don't think anybody uses it
6663
if (!is_null(@json_decode($key_str))) {
6764
return false;

0 commit comments

Comments
 (0)