Skip to content

Commit 309279c

Browse files
committed
update ssh_validate for new testValidSSHKey
1 parent 0917294 commit 309279c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webroot/js/ajax/ssh_validate.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
require_once __DIR__ . "/../../../vendor/autoload.php";
44
require_once __DIR__ . "/../../../resources/lib/utils.php";
55

6-
echo testValidSSHKey($_POST["key"]) ? "true" : "false";
6+
header('Content-Type: application/json; charset=utf-8');
7+
echo jsonEncode(testValidSSHKey($_POST["key"]));

0 commit comments

Comments
 (0)