From owner-freebsd-www Tue Apr 29 06:03:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA15314 for www-outgoing; Tue, 29 Apr 1997 06:03:16 -0700 (PDT) Received: from schubert.promo.de (schubert.Promo.DE [194.45.188.65]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id GAA15287; Tue, 29 Apr 1997 06:03:00 -0700 (PDT) Received: from [194.45.188.81] (stefan.Promo.DE [194.45.188.81]) by schubert.promo.de (8.6.12/8.6.12) with ESMTP id OAA05483; Tue, 29 Apr 1997 14:59:39 +0200 X-Sender: stefan@mail.promo.de Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Date: Tue, 29 Apr 1997 15:02:25 +0200 To: cracauer@freebsd.org, www@freebsd.org From: Stefan Bethke Subject: cvsweb.cgi issues redirect to same url Cc: jfieber@freebsd.org Sender: owner-freebsd-www@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, as a collegue just pointed out to me, cvsweg.cgi issues a redirect to the same url if the path (entered manually) starts with a valid module name, but ends in a nonexisting file or directory. Consider: http://www.freebsd.org/cgi/cvsweb.cgi/usr.sbin/sendmail/ (produces dir) http://www.freebsd.org/cgi/cvsweb.cgi/sendmail/ (produces redir to usr.sbin/sendmail/) http://www.freebsd.org/cgi/cvsweb.cgi/xxx/ (produces error msg) but http://www.freebsd.org/cgi/cvsweb.cgi/usr.sbin/sendmail/xxx/ produces a redirect to exactly that url. Luckily, Apache recognizes this, and provides the cgi output with a (not very helpful) Content-Type: application/x-httpd-cgi. Please review the change in http://www.freebsd.org/~stb/www/cgi/cvsweb.cgi, specifically http://www.freebsd.org/~stb/www/cgi/cvsweb.cgi/usr.sbin/sendmail/ http://www.freebsd.org/~stb/www/cgi/cvsweb.cgi/sendmail/ http://www.freebsd.org/~stb/www/cgi/cvsweb.cgi/xxx/ http://www.freebsd.org/~stb/www/cgi/cvsweb.cgi/usr.sbin/sendmail/xxx Stefan -- Stefan Bethke Promo Datentechnik | Tel. +49-40-851744-0 + Systemberatung GmbH | Fax. +49-40-851744-44 Eduardstrasse 46-48 | e-mail: stefan@Promo.DE D-20257 Hamburg | http://www.Promo.DE/ Private: Mühlendamm 12 | Tel. +49-40-256848 D-22089 Hamburg | e-mail: stefan.bethke@hanse.de