From 164f4a22c68adbfa81935e6ece1292990960b8f5 Mon Sep 17 00:00:00 2001 From: Bill Fenner Date: Sat, 29 Oct 2005 15:11:09 +0000 Subject: [PATCH] Add hub to the list of hosts, I forgot that docs cgi scripts actually run on hub. --- en/cgi/cgi-style.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en/cgi/cgi-style.pl b/en/cgi/cgi-style.pl index 62cb5dfbec..cc9a837e8b 100644 --- a/en/cgi/cgi-style.pl +++ b/en/cgi/cgi-style.pl @@ -1,4 +1,4 @@ -# $FreeBSD: www/en/cgi/cgi-style.pl,v 1.24 2005/10/28 19:07:36 fenner Exp $ +# $FreeBSD: www/en/cgi/cgi-style.pl,v 1.25 2005/10/29 15:08:21 fenner Exp $ # # Perl routines to encapsulate various elements of HTML page style. @@ -12,8 +12,8 @@ if (!defined($hsty_base)) { # $hsty_base should be relative if possible, so that mirrors # serve their local copy instead of going to the main site. # However, if we aren't running as a cgi, or if we're - # running on docs or people, use the absolute home path. - if (!defined($ENV{'HTTP_HOST'}) || $ENV{'HTTP_HOST'} =~ /(docs|people).freebsd.org/) { + # running on hub, docs or people, use the absolute home path. + if (!defined($ENV{'HTTP_HOST'}) || $ENV{'HTTP_HOST'} =~ /(hub|docs|people).freebsd.org/) { $hsty_base = 'http://www.FreeBSD.org' } else { $hsty_base = '..';