From: Ben Greear <[email protected]>
The former did not work, but this code does. I'm using whatever
webkit comes with Fedora-27 on this test system.
Signed-off-by: Ben Greear <[email protected]>
---
hs20/server/www/add-free.php | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/hs20/server/www/add-free.php b/hs20/server/www/add-free.php
index 1efc65563..ac15e1162 100644
--- a/hs20/server/www/add-free.php
+++ b/hs20/server/www/add-free.php
@@ -45,6 +45,12 @@ $db->exec("INSERT INTO eventlog(user,realm,sessionid,timestamp,notes) " .
"strftime('%Y-%m-%d %H:%M:%f','now'), " .
"'completed user input response for a new PPS MO')");
-header("Location: $uri", true, 302);
+# This did not work on my webkit on Fedora-27, it appeared to ignore the
+# header and/or it was waiting for more data from the web server.
+#header("Location: $uri", true, 302);
+
+# This, however, appears to do the same think and work as hoped.
+print("<html><head><meta http-equiv=\"refresh\" content=\"0;URL='$uri'\" /></head>\n");
+print("<body><a href=\"$uri\">Exit</a></body></html>\n");
?>
--
2.14.4
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.