fix: redirigir UUID tokens de form_cliente.php a ver_formulario_enviado.php

El botón WA del template apunta a form_cliente.php?t={{1}}; si el token
es UUID (turnero) se redirige al flujo de consentimiento correcto.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-03 11:16:13 -05:00
co-authored by Claude Sonnet 4.6
parent 538af86407
commit 597ec87964
+5
View File
@@ -4,6 +4,11 @@
* NO REQUIERE AUTENTICACIÓN. Acceso via token: ?t=TOKEN
*/
$token = trim($_GET['t'] ?? '');
// Si el token es un UUID (viene del turnero vía plantilla WA), redirigir al flujo de consentimiento
if (preg_match('/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i', $token)) {
header('Location: ver_formulario_enviado.php?token=' . urlencode($token));
exit;
}
?>
<!DOCTYPE html>
<html lang="es">