fix: forzar HTTPS en link de consentimiento + botón abrir en navegador
- 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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
8b0bdc6b30
commit
50446a3914
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user