[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r10521 - trunk/subversion/libsvn_subr

From: Ben Reser <ben_at_reser.org>
Date: 2004-08-09 22:47:45 CEST

On Sun, Aug 08, 2004 at 10:49:10PM +0100, Philip Martin wrote:
> brane@tigris.org writes:
>
> > Author: brane
> > Date: Sat Aug 7 03:20:16 2004
> > New Revision: 10521
> >
> > --- trunk/subversion/libsvn_subr/validate.c (original)
> > +++ trunk/subversion/libsvn_subr/validate.c Sat Aug 7 03:20:16 2004
> > @@ -70,7 +70,7 @@
> > /* See comment in svn_mime_type_validate() above. */
> > const apr_size_t len = strcspn (mime_type, "; ");
> > return ((strncmp (mime_type, "text/", 5) != 0)
> > - && (strncmp (mime_type, "image/x-xbitmap", len) != 0)
> > - && (strncmp (mime_type, "image/x-xpixmap", len) != 0)
> > + && (len != 15 || strncmp (mime_type, "image/x-xbitmap", len) != 0)
> > + && (len != 15 || strncmp (mime_type, "image/x-xpixmap", len) != 0)
>
> That 15 looks prone to error, particularly if/when more types get
> added.

Let's leave well enough alone. We decided not to add anymore types here
and to make this user configurable...

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Aug 9 22:47:58 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.