comparison src/c/urweb.c @ 2024:6372a742ab04

Allow '+' char in blessMime See this one [1] for an example [1] - http://www.w3.org/TR/SVGTiny12/mimereg.html
author Sergey Mironov <grrwlf@gmail.com>
date Thu, 05 Jun 2014 20:36:12 +0000
parents bcda3ae88677
children 6add6d00ef5f
comparison
equal deleted inserted replaced
2023:e4051315263e 2024:6372a742ab04
3602 return NULL; 3602 return NULL;
3603 } 3603 }
3604 3604
3605 static int mime_format(const char *s) { 3605 static int mime_format(const char *s) {
3606 for (; *s; ++s) 3606 for (; *s; ++s)
3607 if (!isalnum((int)*s) && *s != '/' && *s != '-' && *s != '.') 3607 if (!isalnum((int)*s) && *s != '/' && *s != '-' && *s != '.' && *s != '+')
3608 return 0; 3608 return 0;
3609 3609
3610 return 1; 3610 return 1;
3611 } 3611 }
3612 3612