From owner-freebsd-cvsweb@FreeBSD.ORG Fri Jun 4 02:50:07 2004 Return-Path: Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0645716A4CE for ; Fri, 4 Jun 2004 02:50:07 -0700 (PDT) Received: from mail.vgelder.com (vge.xs4all.nl [80.127.85.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64E8743D1D for ; Fri, 4 Jun 2004 02:50:06 -0700 (PDT) (envelope-from k.vriezen@vgelder.com) Received: by mail.vgelder.com (Postfix, from userid 106) id 4AD67A45; Fri, 4 Jun 2004 11:54:17 +0200 (CEST) Received: from santiago.intern (santiago.dmz [192.168.2.200])by mail.vgelder.com (Postfix) with ESMTP id 060B09CEfor ; Fri, 4 Jun 2004 11:54:17 +0200 (CEST) Received: from santiago.intern (localhost.localdomain [127.0.0.1])by santiago.intern (8.12.11/8.12.11/Debian-3) with ESMTP id i549o2xF028913for ; Fri, 4 Jun 2004 11:50:02 +0200 Received: (from kv@localhost)by santiago.intern (8.12.11/8.12.11/Debian-3) id i549o2II028910for freebsd-cvsweb@FreeBSD.org; Fri, 4 Jun 2004 11:50:02 +0200 X-Authentication-Warning: santiago.intern: kv set sender to k.vriezen@vgelder.com using -f Date: Fri, 4 Jun 2004 11:50:02 +0200 From: Koos Vriezen To: freebsd-cvsweb@FreeBSD.org Message-ID: <20040604095002.GA28772@vgelder.com> References: <20040602171019.GA12732@vgelder.com> <20040603093042.GB12805@vgelder.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040603093042.GB12805@vgelder.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-Copyrighted-Material: Please visit http://www.company.com/privacy.htm Subject: Re: cvsweb version 3:3.0.1-1 diff problems (and howto debug this) X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS Web maintenance mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 09:50:07 -0000 > On Thu, Jun 03, 2004 at 11:30:42AM +0200, Koos Vriezen wrote: > > > > download works, annotated AFAICS doesn't (but I never used this one) and > > colored does not work either. > > For revision 1.2 for file 'myfile' in module 'mymodule' for our > > internal web server (www.intern): > > preferred: > > http://www.intern/cgi-bin/cvsweb/mymodule/myfile.diff?r1=1.1;r2=1.2 > > colored: > > http://www.intern/cgi-bin/cvsweb/mymodule/myfile.diff?r1=1.1;r2=1.2;f=h Ok, turned out to be the query string was not parsed right. The string r1=1.1;r2=1.2 was changed to r1%3D1.1%3Br2%3D1.2 at line 387: my %query = (); if (defined($ENV{QUERY_STRING})) { $ENV{QUERY_STRING} = uri_escape($ENV{QUERY_STRING}); for my $p (split(/[;&]+/, $ENV{QUERY_STRING})) { next unless $p; $p =~ y/+/ /; my ($key, $val) = split(/=/, $p, 2); next unless defined($key); $val = 1 unless defined($val); ($key = uri_unescape($key)) =~ /[[:graph:]]/ or next; ($val = uri_unescape($val)) =~ /[[:graph:]]/ or next; $query{$key} = $val; } } commenting out the 'uri_escape' line makes cvsweb work again. Up to you and/or debian maintainer to fix this, or is it my perl? (seem more likely to me to have a url_unescape or indeed nothing than escaping but I'm not in to this topic ATM) Thanks for the help, Koos ***************DISCLAIMER*************** Bewijs van Afstand: Dit emailbericht is slechts bestemd voor de personen aan wie het is gericht en kan informatie bevatten die persoonlijk of vertrouwelijk is en niet openbaar mag worden gemaakt zonder goedkeuring van de auteur. Indien u dit bericht per vergissing heeft ontvangen, verzoeken wij u ons op de hoogte te stellen en het bericht te vernietigen zonder het te kopiëren of te distribueren. Ons bedrijf staat niet in voor juiste en volledige overbrenging van de inhoud van een verzonden bericht, noch voor de tijdige ontvangst daarvan. Disclaimer: This E-mail is for use of the intended recipient(s) only and can contain information that is personal or confidential. It is prohibited to distribute the content of this message without the author's prior permission. If you have received it in error, please notify the sender and immediately delete this message without distributing or retaining copies hereof. Our company is not responsible for the comprehensiveness of this message nor it's time of delivery. *********************************************