Browse code

core: parser - allow more chars in mime type

Camille Oudot authored on 03/04/2017 18:49:51
Showing 1 changed files
... ...
@@ -38,7 +38,9 @@
38 38
 
39 39
 
40 40
 #define is_mime_char(_c_) \
41
-	(isalpha((int)_c_) || (_c_)=='-' || (_c_)=='+' || (_c_)=='.' || (_c_)=='_')
41
+	(isalnum((int)_c_) || (_c_)=='-' || (_c_)=='+' || (_c_)=='.' || (_c_)=='_' \
42
+			|| (_c_)=='!' || (_c_)=='%' || (_c_)=='*' \
43
+			|| (_c_)=='\'' || (_c_)=='`' || (_c_)=='~')
42 44
 #define is_char_equal(_c_,_cs_) \
43 45
 	( (isalpha((int)_c_)?(((_c_)|0x20)==(_cs_)):((_c_)==(_cs_)))==1 )
44 46