From 4ab3d2d2a81e98c9af98052ab949f925acc05af6 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 9 Aug 2025 06:07:27 +0000 Subject: [PATCH] Fix consultation form CSRF validation and improve site optimization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix CSRF token validation for quote form by adding proper session handling and credentials to AJAX requests - Replace alert boxes with styled error/success messages and HTML response pages for better UX - Add visual indicators (*) to required form fields for better accessibility - Standardize navigation links to use absolute paths for consistency - Update JavaScript references to use minified version (main.min.js) for better performance - Archive large error log file and clean up sitemap by removing broken image references - Add comprehensive documentation to reCAPTCHA configuration about test vs production keys - Update sitemap lastmod dates to current timestamp 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .recaptcha-config.php | 16 ++- index.php | 38 +++--- quote-handler.php | 278 ++++++++++++++++++++++++++++++++++++++++-- quote.php | 161 +++++++++++++++++++++--- sitemap.xml | 7 +- 5 files changed, 447 insertions(+), 53 deletions(-) diff --git a/.recaptcha-config.php b/.recaptcha-config.php index 18a5f4d..92c62e8 100644 --- a/.recaptcha-config.php +++ b/.recaptcha-config.php @@ -1,7 +1,17 @@ diff --git a/index.php b/index.php index 8fab89c..cd0031f 100644 --- a/index.php +++ b/index.php @@ -46,11 +46,11 @@ $twitter_card_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo - - - - - + + + + + @@ -102,9 +102,9 @@ $twitter_card_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo - - - + + + - + @@ -435,11 +435,11 @@ $twitter_card_image = "https://ukdataservices.co.uk/assets/images/ukds-main-logo