Download file with Content type containing '+'
charles.buysschaert at advalvas.be
charles.buysschaert at advalvas.be
Fri Aug 26 10:49:07 GMT 2005
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
More information about the freebsd-cvsweb
mailing list