From owner-freebsd-cvsweb@FreeBSD.ORG Fri Aug 26 10:49:06 2005 Return-Path: X-Original-To: freebsd-cvsweb@freebsd.org 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 DE38116A41F for ; Fri, 26 Aug 2005 10:49:06 +0000 (GMT) (envelope-from charles.buysschaert@advalvas.be) Received: from xelia.globesee.com (xelia.globesee.com [217.64.245.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF33643D45 for ; Fri, 26 Aug 2005 10:49:05 +0000 (GMT) (envelope-from charles.buysschaert@advalvas.be) Received: by xelia.globesee.com (Advalvas mail, from userid 48) id 7B429286C6F; Sun, 21 Aug 2005 20:43:26 +0200 (CEST) Received: from 217.136.71.24 (SquirrelMail authenticated user charles.buysschaert); by www.advalvas.be with HTTP; Sun, 21 Aug 2005 20:43:26 +0200 (CEST) Message-ID: <1456.217.136.71.24.1124649806.squirrel@217.136.71.24> Date: Sun, 21 Aug 2005 20:43:26 +0200 (CEST) From: charles.buysschaert@advalvas.be To: freebsd-cvsweb@freebsd.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Download file with Content type containing '+' X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS Web maintenance mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 10:49:07 -0000 Hello, After installing cvsweb on my Debian, I got an error "Unsupported content type: text/x-c++src" while trying to download cpp files. My mime.types file associates *.cpp with "text/x-c++src". The cvsweb.cgi script performs the following check : if (defined($t)) { ($input{'content-type'}) = ($t =~ m|^([-0-9A-Za-z]+/[-0-9A-Za-z\.]+)$|) or fatal('500 Internal Error', 'Unsupported content type: %s', $t); } I could work around this by changing [-0-9A-Za-z\.] into [+-0-9A-Za-z\.] Is there any reason why '+' wasn't included there? Thank you, Charles ---------------------------------------------------------------------------------- Plaats je zoekertjes GRATIS op AdValvas Placez votre petite annonce GRATUITEMENT sur AdValvas http://www.advalvas.be