From 50446a3914e17f4ba16f204198e9aeaf980fbb03 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 16 Jul 2026 21:08:19 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20forzar=20HTTPS=20en=20link=20de=20consen?= =?UTF-8?q?timiento=20+=20bot=C3=B3n=20abrir=20en=20navegador?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - create_turno.php: reemplaza http:// por https:// en el link enviado por WhatsApp, evitando que Android CCT bloquee páginas HTTP - ver_formulario_enviado.php: agrega botón "Abrir en navegador" en la barra de acción cuando el modo es turnero, como fallback para Android Co-Authored-By: Claude Sonnet 4.6 --- modules/turnero/api/create_turno.php | 2 ++ ver_formulario_enviado.php | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/modules/turnero/api/create_turno.php b/modules/turnero/api/create_turno.php index 5534892..0de00d4 100644 --- a/modules/turnero/api/create_turno.php +++ b/modules/turnero/api/create_turno.php @@ -156,6 +156,8 @@ try { // Solo generar enlace si el modo es 'link' (embebido no usa WA) if (($formRow['formulario_modo'] ?? 'link') === 'link') { $baseUrl = defined('BASE_URL') ? rtrim(BASE_URL, '/') : ''; + // Forzar HTTPS: Android WhatsApp CCT bloquea páginas HTTP + $baseUrl = preg_replace('#^http://#', 'https://', $baseUrl); $enlaceConsentimiento = $baseUrl . '/ver_formulario_enviado.php?token=' . urlencode($conToken); } } diff --git a/ver_formulario_enviado.php b/ver_formulario_enviado.php index 93c1bf2..0ec079b 100644 --- a/ver_formulario_enviado.php +++ b/ver_formulario_enviado.php @@ -677,6 +677,12 @@ function _addExamWizardHtml(string $cid): string {
+ + Abrir en navegador +