Commit graph

743 commits

Author SHA1 Message Date
Wolfram Schneider
bd2d4b809e shut up perl -T warnings and make this script run again.
Reported by: Iwan
2007-03-19 18:26:27 +00:00
Daniel Gerzo
5433818b11 Bump the copyright year in the footer of cgi scripts.
Approved by: keramida (mentor), trhodes (mentor)
2007-03-19 18:15:27 +00:00
Wolfram Schneider
6521689fb7 shut up perl -T warnings 2007-03-19 18:13:51 +00:00
Wolfram Schneider
99c167417c False [] range "\w-" in regex
Submitted by: perl5.8.8 -cw -T url.cgi
2007-03-19 17:52:39 +00:00
Doug Barton
b4fbce9104 Unhook removed cvsweb.conf-{net|open}bsd files to unbreak
the www build.
2007-03-19 05:44:58 +00:00
Simon L. B. Nielsen
218372c650 Remove CVSweb support config files NetBSD and OpenBSD repositories now
that they have been removed from cvsweb.conf.

Reminded by:	wosch
2007-03-18 20:05:06 +00:00
Simon L. B. Nielsen
bf48230019 Remove the OpenBSD and NetBSD repositories. Both project have their
own CVSweb so there is not really any big reason for us to have CVSweb
for them as well. [1]

Remove the "learn" CVS repository.  It hasn't changed in 9 years... [1]

Remove the German and San Marino CVSweb mirrors from the list since
neither one has a hostname which resolves.

Suggested by:	wosch [1]
2007-03-18 17:12:45 +00:00
Simon L. B. Nielsen
9f255a118c Hide the "root" directory since it's just an artifact of how the FreeBSD
CVS repositories are exported via CVSup.

Indirectly suggested by:	rafan
2007-03-18 07:52:58 +00:00
Simon L. B. Nielsen
1f08136bd0 Remove 4.4BSD-Lite from the list of repositories - it's not actually
online (so CVSweb doesn't show it in the list anyway), and I don't
recall seeing it online while I have been around.
2007-03-17 23:23:31 +00:00
Simon L. B. Nielsen
47d54316fb Merge CVSweb 3.0.6 into HEAD. This was basically done as a manual merge
the relevant parts onto CVSweb 3.0.6 stock files, so it is not entirely
impossible that some local changes were lost, though I don't think/hope
so.

The use of cgi-style.pl was merged by danger@.  He also, together with
Dan Langille, got CVSweb 3 tested against FreshPorts prior to commit, so
this update should not blow up FreshPorts.  Thanks to both for the help.

Note that this now means that the FreeBSD CGI scripts more or less
require perl 5.8 (or at least something newer than 5.0), to run without
local modifications - but people really shouldn't be running perl 5.0
these days anyway... (no comments on the fact that www.FreeBSD.org did
this until ~2 hours ago... ).
2007-03-17 22:28:31 +00:00
Simon L. B. Nielsen
88f688c0ff Remove the -T option so it iss possible to run cvsweb 2 on Perl 5.8
which has more strict taint checks.

This is a temporary stopgap while upgrading to perl 5.8 and migrating
to cvsweb 3 to get around the catch-22 that cvsweb 3 requires perl
5.8, and perl can't be upgraded to 5.8 if it breaks cvsweb.
2007-03-17 20:53:48 +00:00
Remko Lodder
bf645a9416 Specify what Content-Type we send, and what the script was expecting to
get.

PR:		www/110285
Submitted by:	Devon H. O'Dell <devon dot odell at coyotepoint dot com>
Silence on:	www@
2007-03-16 06:35:54 +00:00
Ceri Davies
19c86109a0 Update to 6.2-RELEASE, move stable to 6.2-stable. 2007-02-23 21:09:54 +00:00
Wolfram Schneider
1071aaef4a No double slashes in URL path, please! 2007-02-19 19:20:35 +00:00
Wolfram Schneider
99b2aab5cc The man.cgi wrapper was replaces by the real man.cgi script. 2007-02-18 20:19:45 +00:00
Wolfram Schneider
bcbdc8c334 small cleanup:
- /faq.html -> /help.html
 - merge /copyright.html into help.html
 - section title without link and logo
 - no logo in footer
 - minor bugfixes in layout & design
 - remove 'Quick Reference Categories'
2007-02-11 11:39:20 +00:00
Simon L. B. Nielsen
35f8a80bcb Change the default man pages to FreeBSD 6.2. 2007-01-27 21:37:10 +00:00
Tom Rhodes
a709ce875f Commit a fix provided by danger to fix issues with the query-pr cgi scripts.
Submitted by:	danger
Reviewed by:	keramida, trhodes
2007-01-11 00:17:29 +00:00
Daniel Gerzo
62076a45d1 Merge query-by-number and multi-field query forms.
This work included:

- move a few functions out of query-pr-summary.cgi into a new file -
  query-pr-lib.pl, which now provides a procedure to display forms
- include query-pr-lib.pl in both query-pr.cgi and query-pr-summary.cgi
  scripts

PR: www/35647
Approved by: trhodes (mentor), keramida (mentor)
Silence from: www@
2007-01-10 17:47:39 +00:00
Shaun Amott
36b304ee28 - Add MIME, base64 and quoted-printable support.
- Don't over-pad patches in viewer.
- URL-ifiy PR references.
- Misc fixes.

Approved by:	simon
2006-12-09 15:46:06 +00:00
Wolfram Schneider
382d335ee1 Old archive files contains a dot. 2006-12-01 21:58:22 +00:00
Wolfram Schneider
2e48c6cb17 taint mode fixes 2006-11-30 20:36:31 +00:00
Shaun Amott
5e5c996a1b - Differentiate between "busy" and "no PRs matched", and display the
appropriate message.
- Add some logic to deal with manually inserted / unexpected text within
  the Audit-Trail.
- Extend URL regex.

Approved by:	pav
2006-11-27 17:12:50 +00:00
Bruce A. Mah
5a328ff280 Update for new CURRENT manpages from November 2006 snapshot build. 2006-11-18 22:44:28 +00:00
www
566e02e9c3 Add entries for FreeBSD 6.2-RELEASE and 6-stable. 2006-11-16 19:10:29 +00:00
Wolfram Schneider
2d52c41841 add trustedbsd-* to valid mailing lists 2006-11-12 18:37:34 +00:00
Simon L. B. Nielsen
1fd366d976 Use the locked version of the query-pr program to avoid running
www.FreeBSD.org out of memory.
2006-11-03 12:32:59 +00:00
Yaroslav Tykhiy
d01457cf1d Decode query components. Without this, one
couldn't specify full PR ID, e.g., bin/12345, in the
"PR number" field of the web form because the slash
was encoded as %2F by many browsers.  Of course,
decoding the query is a must for a cgi in general.
2006-10-26 11:13:34 +00:00
Daniel Gerzo
f49984172c - Let this script generate valid XHTML
- Also allow queries like query-pr.cgi?q= and query-pr.cgi?cat/num
- Fix comment
- Display query form when no results found
- Allow some other characters to be part of the URL [1]

PR: www/103628 [1]
Reviewed by: simon, remko
Approved by: keramida (mentor)
2006-10-11 21:02:58 +00:00
Ceri Davies
ed46521e4b Allow '/' in the search filter so that people can search for stuff like
'games/robotfindskitten'.

PR:		www/104131
Reviewed by:	simon
2006-10-08 17:00:12 +00:00
Ceri Davies
e76f60e1c6 We really don't have a recent perl on www, despite things I have read to
contrary.
2006-10-08 10:09:39 +00:00
Ceri Davies
8759cd186a Bump version number and move a newline back to where it came from. 2006-10-07 18:12:16 +00:00
Ceri Davies
9231a0d249 Allow patches to be attached via the web page.
Thanks to Marius Nuennerich for submitting the idea and for never giving
up on nagging me about it.

PR:		www/83397
2006-10-07 18:08:04 +00:00
Ceri Davies
56affaf295 There are no more consumers of html.pl, so kill it. 2006-10-07 14:08:11 +00:00
Ceri Davies
54ca30ff53 Convert dosendpr.cgi from html.pl to CGI.pm.
This will allow us to use multipart forms without rolling our own MIME
parser.
2006-10-07 14:07:46 +00:00
Daniel Gerzo
6f856aa7f2 Change the default behavior of this script to display query form instead
of generating full list of all open PRs in GNATS.  I hope this change
will at least a bit decrease the load of GNATS.

Reviewed by: www@
Approved by: keramida (mentor)
2006-09-24 13:34:55 +00:00
Simon L. B. Nielsen
12ce8b2a67 Note which port gives us Convert::UU in a comment. 2006-09-23 14:02:27 +00:00
Shaun Amott
eaea0ff8ac Fix a few bugs in the processing of the Audit-Trail:
- A multi-line mail header wrapping on a space wasn't handled correctly.
- My attempt at finding the end of patches with no delimiter inside
  replies wasn't working in some cases; I've disabled it for now.
2006-09-19 13:20:42 +00:00
Shaun Amott
2212fec61a Introducing the new GNATS web interface.
This was written from scratch, and offers numerous enhancements over the
old script; notably:

- Patches are parsed, coloured, uudecoded, and downloadable.
- Cleaner, clearer layout.
- Easier-to-read Audit-Trail.

Reviewed by:	freebsd-www (well, I tried...)
Approved by:	simon
2006-09-18 21:25:38 +00:00
Daniel Gerzo
010290f0f9 Make query-pr-summary.cgi to work with perl 5.8.
This is required for new www server setup.

Reviewed by: simon
Approved by: trhodes (mentor), keramida (mentor)
2006-09-12 21:53:18 +00:00
Simon L. B. Nielsen
56cf075388 Retire the ftp.cgi script. It's redundant due to the the mirror list in
the Handbook, and I can't find any references to it from anywhere.

I strongly suspect that nobody actually knows ftp.cgi exist, at least I
didn't :-).
2006-08-29 19:46:27 +00:00
Simon L. B. Nielsen
fa2123fbc2 - Remove link to source of the CGI script. It doesn't work and people
can find the source via cvsweb in any case.
- Use $hsty_base more places for better compatibility with
  cgi.FreeBSD.org (IE. when the static FreeBSD.org web pages are
  somewhere other that the site running the CGI's).
2006-08-19 21:40:25 +00:00
Simon L. B. Nielsen
bc748f54ed Don't define $hsty_base, since that prevents cgi-style.pl from
overriding it when needed (e.g. when run on cgi.FreeBSD.org).
2006-08-19 21:18:18 +00:00
Simon L. B. Nielsen
c8947cbfad Be a bit more strict with what we extract from the query string. This
fixes use of the script with Perl 5.8.

This should match all characters of current ports.  If somebody finds
some new characters to use in a port name the matching regex will need
to be updated.
2006-08-19 21:03:12 +00:00
Simon L. B. Nielsen
36412ae061 Remove gallery.cgi. It was scheduled for removal over two years ago. 2006-07-23 23:47:34 +00:00
Simon L. B. Nielsen
eee4df9058 When checking HTTP_HOST to determine if we should use relative or
absolute base path, do the check case insensitive to handle if
HTTP_HOST e.g. comes in as FreeBSD.org.

Break a rather long line (being changed anyway) to improve
readability.
2006-07-23 22:35:12 +00:00
Simon L. B. Nielsen
db89ca035d 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).
2006-07-23 18:36:53 +00:00
www
c40d94a3b5 NetBSD 3.0 is the default NetBSD release 2006-07-11 12:10:38 +00:00
www
bbf92a5f81 add NetBSD 2.0.2, NetBSD 2.1, NetBSD 3.0 2006-07-11 11:50:34 +00:00
www
db2e0778b5 OpenBSD 3.9 is the default OpenBSD release 2006-07-11 09:19:45 +00:00