Clean up the definition and use of $gCGIDomain (#139697).
$gHTMLSuffix = ".html";
+The use of $gCGIDomain has been cleaned up; formerly, it needed to begin
+with "http://", which was confusingly inconsistent with all the other domain
+variables. If you worked around this in your configuration, you will need to
+recheck it.
+
From 2.3 to 2.4
---------------
- Add facility to search by tag.
- Fix rebuild script and add it to the example crontab, closes: #139696.
- Silence postinst warning if spool/db doesn't exist, closes: #194892.
+ - Clean up the definition and use of $gCGIDomain, closes: #139697.
* Adam Heath:
- Convert all code to use global read/write functions, instead of having
it duplicated everywhere.
<p>Find a bug by <strong>number</strong>:
<br>
- <form method="get" action="$gCGIDomain/cgi-bin/bugreport.cgi">
+ <form method="get" action="http://$gCGIDomain/bugreport.cgi">
<input type="text" size="9" name="bug" value="">
<input type="submit" value="Find">
<input type="checkbox" name="mbox" value="yes"> as mbox
</form>
-<form method="get" action="$gCGIDomain/cgi-bin/pkgreport.cgi">
+<form method="get" action="http://$gCGIDomain/pkgreport.cgi">
<p>Find bugs by:
<input type="radio" name="which" value="pkg" checked><strong>package</strong>
<input type="radio" name="which" value="src"><strong>source package</strong>
<p>The following bug report indices are available:
<ul>
<li>Packages with
- <a href="$gCGIDomain/cgi-bin/pkgindex.cgi?indexon=pkg">active</a>
+ <a href="http://$gCGIDomain/pkgindex.cgi?indexon=pkg">active</a>
and
- <a href="$gCGIDomain/cgi-bin/pkgindex.cgi?indexon=pkg&archived=yes">archived</a>
+ <a href="http://$gCGIDomain/pkgindex.cgi?indexon=pkg&archived=yes">archived</a>
bug reports.
<li>Source packages with
- <a href="$gCGIDomain/cgi-bin/pkgindex.cgi?indexon=src">active</a>
+ <a href="http://$gCGIDomain/pkgindex.cgi?indexon=src">active</a>
and
- <a href="$gCGIDomain/cgi-bin/pkgindex.cgi?indexon=src&archived=yes">archived</a>
+ <a href="http://$gCGIDomain/pkgindex.cgi?indexon=src&archived=yes">archived</a>
bug reports.
<li>Maintainers of packages with
- <a href="$gCGIDomain/cgi-bin/pkgindex.cgi?indexon=maint">active</a>
+ <a href="http://$gCGIDomain/pkgindex.cgi?indexon=maint">active</a>
and
- <a href="$gCGIDomain/cgi-bin/pkgindex.cgi?indexon=maint&archived=yes">archived</a>
+ <a href="http://$gCGIDomain/pkgindex.cgi?indexon=maint&archived=yes">archived</a>
bug reports.
<li>Submitters of
- <a href="$gCGIDomain/cgi-bin/pkgindex.cgi?indexon=submitter">active</a>
+ <a href="http://$gCGIDomain/pkgindex.cgi?indexon=submitter">active</a>
and
- <a href="$gCGIDomain/cgi-bin/pkgindex.cgi?indexon=submitter&archived=yes">archived</a>
+ <a href="http://$gCGIDomain/pkgindex.cgi?indexon=submitter&archived=yes">archived</a>
bug reports.
</ul>
# This is the bugs.debian.org debbugs configuration file.
-# $Id: config.debian,v 1.19 2003/05/31 15:59:12 cjwatson Exp $
+# $Id: config.debian,v 1.20 2003/06/05 08:26:59 cjwatson Exp $
# Domains
$gEmailDomain = "bugs.debian.org";
$gWebDomain = "www.debian.org/Bugs";
$gHTMLSuffix = "";
$gPackagePages = "packages.debian.org";
-$gCGIHost = "bugs.debian.org";
-$gCGIPath = "/cgi-bin";
-$gCGIDomain = "http://$gCGIHost$gCGIPath";
+$gCGIDomain = "bugs.debian.org/cgi-bin";
$gMirrors = ""; # comma separated list
$gSubscriptionDomain = "packages.qa.debian.org";
#!/usr/bin/perl
-# $Id: service.in,v 1.76 2003/05/31 11:17:16 cjwatson Exp $
+# $Id: service.in,v 1.77 2003/06/05 08:26:59 cjwatson Exp $
# ^ more or less ^
#
# Usage: service <code>.nn
sub sendlynxdocraw {
local ($relpath,$description) = @_;
$doc='';
- open(L,"lynx -nolist -dump $gCGIDomain/\Q$relpath\E 2>&1 |") || &quit("fork for lynx: $!");
+ open(L,"lynx -nolist -dump http://$gCGIDomain/\Q$relpath\E 2>&1 |") || &quit("fork for lynx: $!");
while(<L>) { $doc.=$_; }
$!=0; close(L);
if ($? == 255 && $doc =~ m/^\n*lynx: Can\'t access start file/) {