diff options
author | Simon L. B. Nielsen <simon@FreeBSD.org> | 2006-07-23 18:36:53 +0000 |
---|---|---|
committer | Simon L. B. Nielsen <simon@FreeBSD.org> | 2006-07-23 18:36:53 +0000 |
commit | db89ca035d6691caca7f7b1fe478851ebd13b040 (patch) | |
tree | 89661baaf9c27ebda0b942248275b102a43c086a /en | |
parent | d2eb0d047d21414bfef087300363bd0627eeb31c (diff) | |
download | doc-db89ca035d6691caca7f7b1fe478851ebd13b040.tar.gz doc-db89ca035d6691caca7f7b1fe478851ebd13b040.zip |
Also use absolute base path on cgi.FreeBSD.org.
More hacks may be required later to really get this to work (due to
other magic involved in the setup).
Notes
Notes:
svn path=/www/; revision=28365
Diffstat (limited to 'en')
-rw-r--r-- | en/cgi/cgi-style.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/en/cgi/cgi-style.pl b/en/cgi/cgi-style.pl index 8c6e1f0b6f..d752be65cb 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.30 2006/02/16 14:34:06 jcamou Exp $ +# $FreeBSD: www/en/cgi/cgi-style.pl,v 1.31 2006/05/08 23:15:37 kuriyama 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 hub, docs or people, use the absolute home path. - if (!defined($ENV{'HTTP_HOST'}) || $ENV{'HTTP_HOST'} =~ /(hub|docs|people).freebsd.org/) { + # running on cgi, hub, docs or people, use the absolute home path. + if (!defined($ENV{'HTTP_HOST'}) || $ENV{'HTTP_HOST'} =~ /(cgi|hub|docs|people).freebsd.org/) { $hsty_base = 'http://www.FreeBSD.org' } else { $hsty_base = '..'; |