Date: Sun, 21 Aug 2005 20:43:26 +0200 (CEST) From: charles.buysschaert@advalvas.be To: freebsd-cvsweb@freebsd.org Subject: Download file with Content type containing '+' Message-ID: <1456.217.136.71.24.1124649806.squirrel@217.136.71.24>
next in thread | raw e-mail | index | archive | help
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: <code>%s</code>', $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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1456.217.136.71.24.1124649806.squirrel>