From 6ca9e5256a58716e665e0835b070918e0e5da5a4 Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Mon, 7 Apr 2025 08:42:16 +0300 Subject: [PATCH] Small fixes --- cp/app/Controllers/SystemController.php | 4 ++-- cp/resources/views/admin/system/manageTld.twig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cp/app/Controllers/SystemController.php b/cp/app/Controllers/SystemController.php index 71e7ce1..0290a1b 100644 --- a/cp/app/Controllers/SystemController.php +++ b/cp/app/Controllers/SystemController.php @@ -986,7 +986,7 @@ class SystemController extends Controller $secureTld = $tld['secure']; if ($secureTld === 1) { if (file_exists('/usr/sbin/rndc')) { - $zone = ltrim($tld['tld'], '.'); + $zone = strtolower(ltrim($tld['tld'], '.')); $statusOutput = shell_exec("sudo rndc dnssec -status " . escapeshellarg($zone) . " 2>&1"); if (!$statusOutput) { @@ -1066,7 +1066,7 @@ class SystemController extends Controller } } } elseif (file_exists('/usr/sbin/knotc')) { - $zone = ltrim($tld['tld'], '.'); + $zone = strtolower(ltrim($tld['tld'], '.')); $keyDir = '/etc/knot/keys'; // Use knotc to get key statuses diff --git a/cp/resources/views/admin/system/manageTld.twig b/cp/resources/views/admin/system/manageTld.twig index 311ad3c..24a6153 100644 --- a/cp/resources/views/admin/system/manageTld.twig +++ b/cp/resources/views/admin/system/manageTld.twig @@ -316,7 +316,7 @@ document.querySelectorAll('.enable-dnssec-link').forEach(function (el) { Swal.fire({ title: 'Are you sure?', - text: 'Please ensure DNSSEC has been properly configured for this TLD prior to proceeding, as outlined in section 2.1.3b. of the manual.', + text: 'Please ensure DNSSEC has been properly configured for this TLD prior to proceeding, as outlined in section 2.1.1 of the manual.', icon: 'warning', showCancelButton: true, confirmButtonText: 'Yes, continue',