From 0ffc900ea973bea6606a2c2333755190aadb7ffa Mon Sep 17 00:00:00 2001 From: devdatt Date: Fri, 12 Dec 2025 07:26:16 +0530 Subject: [PATCH] cert error --- encoder/request_cert.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/encoder/request_cert.php b/encoder/request_cert.php index 4844398..f191663 100755 --- a/encoder/request_cert.php +++ b/encoder/request_cert.php @@ -11,9 +11,6 @@ $https = false; function alert_and_back($message) { global $https; - $domain = trim($_POST['domain'] ?? ''); - $subdomains_raw = trim($_POST['subdomains'] ?? ''); - $email = trim($_POST['email'] ?? ''); $jsonFile = __DIR__ . '/domain.json'; @@ -28,7 +25,9 @@ function alert_and_back($message) global $FORM_PAGE; - + global $domain; + global $subdomains_raw; + global $email; // SAFELY escape entire message for JavaScript (supports newlines, quotes, etc.) $msg = json_encode($message, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); @@ -54,6 +53,9 @@ function alert_and_back($message) "; exit; } +$domain = trim($_POST['domain'] ?? ''); +$subdomains_raw = trim($_POST['subdomains'] ?? ''); +$email = trim($_POST['email'] ?? ''); $staging = ($_POST['staging'] ?? "0") === "1" ? 1 : 0;