Skip to content

Commit 8eb8a0e

Browse files
committed
ajax php don't initialize entire stack
1 parent a6ea0ad commit 8eb8a0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webroot/js/ajax/ssh_validate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
require_once __DIR__ . "/../../../resources/autoload.php";
3+
require_once __DIR__ . "/../../../resources/lib/UnitySite.php";
44

5-
echo $SITE->testValidSSHKey($_POST["key"]) ? "true" : "false";
5+
echo (new UnityWebPortal\lib\UnitySite())->testValidSSHKey($_POST["key"]) ? "true" : "false";

0 commit comments

Comments
 (0)