From 088fe9ee53323aa3e1da81e3f32b0e2998d27cd8 Mon Sep 17 00:00:00 2001 From: Miraty Date: Tue, 11 Apr 2023 02:43:16 +0200 Subject: [PATCH] Fix check.php for new domain registration form --- check.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/check.php b/check.php index a0e92db..22749e0 100644 --- a/check.php +++ b/check.php @@ -42,7 +42,6 @@ function curlTest($path, $args) { CURLOPT_COOKIEJAR => COOKIE_FILE, CURLOPT_POSTFIELDS => $args, ]); - var_dump(curl_error($req)); $status_code = curl_getinfo($req, CURLINFO_RESPONSE_CODE); if ($status_code >= 400) { var_dump(curl_exec($req)); @@ -94,6 +93,7 @@ var_dump($subdomain); curlTest('/reg/register', [ 'subdomain' => $subdomain, 'suffix' => SUFFIX, + 'action' => 'register', ]); curlTest('/reg/ns', [ @@ -130,7 +130,6 @@ if (proc_close($process) !== 0) $html = curlTest('/ht/add-onion', [ 'dir' => '_site0-' ]); -var_dump($html); if (preg_match('#\http\://(?[0-9a-z]{56})\.onion/\#D', $html, $matches) !== 1) exit('Can\'t find onion address.'); @@ -156,3 +155,5 @@ curlTest('/auth/unregister', [ ]); unlink(COOKIE_FILE); + +echo 'OK' . LF;