Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 1997 15:02:25 +0200
From:      Stefan Bethke <stefan@promo.de>
To:        cracauer@freebsd.org, www@freebsd.org
Cc:        jfieber@freebsd.org
Subject:   cvsweb.cgi issues redirect to same url
Message-ID:  <l03010d00af8b9fc6e561@[194.45.188.81]>

next in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?l03010d00af8b9fc6e561>