From c9f8b16859c4d0580b57a25b388e0b51e8cd6574 Mon Sep 17 00:00:00 2001 From: TrystanLea Date: Thu, 1 Feb 2024 14:41:19 +0000 Subject: [PATCH] update captive portal --- index.php | 6 ++++-- version.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index c0b7a0073..3e22474ac 100644 --- a/index.php +++ b/index.php @@ -166,11 +166,13 @@ // -------------------------------------------------------------------------------------- // Special routes -// Captive portal (android only) -if ($route->controller=="generate_204") { +// Captive portal (android working, no luck on iOS yet) +if ($route->controller=="generate_204" || $route->controller=="hotspot-detect") { header('Location: /'); exit; } +// if (get('q')=="library/test/success.html") { header('Location: /'); exit; } + // Return brief device descriptor for hub detection if ($route->controller=="describe") { diff --git a/version.json b/version.json index 407269760..a60362ff3 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "name" : "Emoncms Core", - "version" : "11.4.8", + "version" : "11.4.9", "location" : "/var/www", "branches_available": ["stable","master"] }