[hermes] PATCH: Mozilla 1.2 bug workaround

Jason M. Felice jfelice at cronosys.com
Mon Jun 2 11:32:45 PDT 2003


I've finally figured out my problem with running Hermes, and it is a mozilla
1.2 bug involving redirections.  It just goes haywire the first time you
go to the index-- it looks like it tries to connect to localhost five or
six times then gives you the "Document contains no data" boot.

This patch includes time.php instead of redirecting to it... this is what
whups does, and whups works fine under mozilla 1.2

-Jay 'Eraserhead' Felice

Index: hermes/index.php
===================================================================
RCS file: /repository/hermes/index.php,v
retrieving revision 1.3
diff -u -u -r1.3 index.php
--- hermes/index.php	27 Apr 2003 00:27:31 -0000	1.3
+++ hermes/index.php	2 Jun 2003 18:23:33 -0000
@@ -14,15 +14,12 @@
                      @is_readable(HERMES_BASE . '/config/html.php'));
 
 if ($whups_configured) {
-    include_once HERMES_BASE . '/lib/base.php';
-
     $uri = 'time.php';
     if (!empty($_SERVER['QUERY_STRING'])) {
         $uri .= '?' . $_SERVER['QUERY_STRING'];
     }
 
-    header('Location: ' . Horde::applicationUrl($uri, true));
-    exit;
+    require_once HERMES_BASE . '/time.php';
 } else {
     /* Hermes isn't configured */
     include HERMES_BASE . '/templates/index/notconfigured.inc';


More information about the hermes mailing list