misc/53450: [patch] Cvsweb 2.0.6 or above cause an error withwhite-space included directory

arc arc at a5r.highway.ne.jp
Wed Jun 18 08:20:04 PDT 2003


>Number:         53450
>Category:       misc
>Synopsis:       [patch] Cvsweb 2.0.6 or above cause an error with white-space inc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 18 08:20:02 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     arc aka heno <arc at a5r.highway.ne.jp>
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
program-bbs at 2ch
>Environment:
System: FreeBSD fr45 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56
 GMT 2002 murray at builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386

 and sourceforge.jp (Linux)

>Description:
FreeBSD-cvsweb says an error when "(download)" link was clicked for files in
 a directory named with white-space.

  like:
    "ncvs/white\ space\ included\ directory/try-to-download-this,v"

>How-To-Repeat:

FreeBSD-cvs 2.0.6
ttp://minix-up.sourceforge.jp/cgi-bin/now.cgi/l/t%20c/try-to-download-this

Fixed
ttp://minix-up.sourceforge.jp/cgi-bin/fixed.cgi/l/t%20c/try-to-download-this


>Fix:

--- now.cgi	Sun Jun 15 12:48:28 2003
+++ fixed.cgi	Sun Jun 15 12:46:38 2003
@@ -3410,6 +3410,7 @@
 	{
 		my $path = $where;
 		$path =~ s|[^/]+$||;
+		$path = urlencode($path);
 		$url = "$scriptname/$checkoutMagic/${path}$url";
 	}
 	$url .= "?rev=$revision";


>Release-Note:
>Audit-Trail:
>Unformatted:
 luded  directory


More information about the freebsd-bugs mailing list