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:
co-authored by
Claude Sonnet 4.6
parent
538af86407
commit
597ec87964
@@ -4,6 +4,11 @@
|
|||||||
* NO REQUIERE AUTENTICACIÓN. Acceso via token: ?t=TOKEN
|
* NO REQUIERE AUTENTICACIÓN. Acceso via token: ?t=TOKEN
|
||||||
*/
|
*/
|
||||||
$token = trim($_GET['t'] ?? '');
|
$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>
|
<!DOCTYPE html>
|
||||||
<html lang="es">
|
<html lang="es">
|
||||||
|
|||||||
Reference in New Issue
Block a user