Re: [PATCH] validate MIME type correctly (was: Re: svn: MIME type 'text/x-c++' ends with non-alphanumeric) character
From: Stefan Sperling <stsp_at_elego.de>
Date: Sat, 26 Apr 2008 14:10:44 +0200
On Sat, Apr 26, 2008 at 01:34:22PM +0200, Alan Barrett wrote:
Thanks.
> except I am not sure if you want to
The code explicitly allows this. I don't know whether this
Here's the whole (patched) function again for reference,
svn_error_t *
if (len == 0)
if (slash_pos == NULL || slash_pos >= &mime_type[len])
/* Check the mime type for illegal characters. See RFC 1521. */
return SVN_NO_ERROR;
-- Stefan Sperling <stsp_at_elego.de> Software Monkey German law requires the following banner :( elego Software Solutions GmbH HRB 77719 Gustav-Meyer-Allee 25, Gebaeude 12 Tel: +49 30 23 45 86 96 13355 Berlin Fax: +49 30 23 45 86 95 http://www.elego.de CEO: Olaf Wagner Store password unencrypted (yes/no)? No
|
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.