Commit Graph

12 Commits

Author SHA1 Message Date
Hosteroid
5e4f9e6704 Replace error_log with logger in TldRegistryService
Updated all error and warning logging in TldRegistryService to use the injected logger instead of error_log. This improves consistency and allows for better log management and integration with application logging systems.
2025-10-21 10:36:41 +03:00
Hosteroid
db01becc17 Update TldRegistryService.php 2025-10-21 10:32:16 +03:00
Hosteroid
0dc8abb76f Add status parameter to import completion on failure
Updates calls to importLogModel->completeImport in exception handlers to include a 'failed' status parameter, ensuring clearer logging of failed import operations.
2025-10-21 10:19:42 +03:00
Hosteroid
6d67e828ab Remove Brotli support detection from TldRegistryService
Eliminated Brotli compression support checks and related logging from TldRegistryService. All HTTP clients now explicitly use gzip and deflate encodings only, with cURL options set to disable automatic content decoding and restrict accepted encodings. This simplifies the code and avoids Brotli-related compatibility issues.
2025-10-21 10:00:26 +03:00
Hosteroid
d7aff00e5a Improve cURL brotli support detection logic
Enhanced the brotli support check by adding multiple detection methods: encoding field, features bitmask, and minimum version check. The detection results now include detailed checks and a final decision, improving reliability and logging for brotli support detection.
2025-10-20 23:59:49 +03:00
Hosteroid
0a296dd6b3 Add Brotli detection and HTTP request logging
Enhanced Brotli support detection with detailed logging of detection results. Added logHttpRequest method to log HTTP request and response details for debugging, and integrated it into all HTTP client instantiations using the on_stats callback. Improved client creation logging and refactored Accept-Encoding header handling for clarity.
2025-10-20 23:44:00 +03:00
Hosteroid
ccd1f0c87a Add Brotli support detection to TldRegistryService
Introduces a static method to check for Brotli compression support and conditionally includes 'br' in the Accept-Encoding header for HTTP requests. Also removes old incremental migration files from the installer controller.
2025-10-20 23:30:17 +03:00
Hosteroid
823248f025 Improve date parsing to handle timezones correctly
Updated date parsing logic to distinguish between ISO 8601 dates with timezone information and plain database datetimes. Plain datetimes are now explicitly parsed as UTC to ensure consistent handling and comparison.
2025-10-12 11:02:34 +03:00
Hosteroid
1d80dd282c Update TldRegistryService.php 2025-10-11 01:26:19 +03:00
Hosteroid
b0b2b6a94d Normalize dates in TldRegistryService results
Updated the assignment of 'registration_date' and 'record_last_updated' fields to use the normalizeDate method, ensuring consistent date formatting in the TldRegistryService output.
2025-10-11 01:15:03 +03:00
Hosteroid
a29becc944 Add CSRF, CAPTCHA, and input validation improvements
Introduces CSRF protection to all sensitive controller actions, integrates configurable CAPTCHA (reCAPTCHA v2/v3, Turnstile) for authentication and registration flows, and centralizes input validation via a new InputValidator helper. Adds new helpers and services for CSRF and CAPTCHA, updates settings and migration for CAPTCHA configuration, and enhances logging and error handling in TLD registry import processes. Also improves validation for user, domain, group, and profile inputs throughout the application.
2025-10-10 00:04:12 +03:00
Hosteroid
b3b3ac66ff Initial Commit 2025-10-08 14:23:07 +03:00