Module: kamailio
Branch: master
Commit: 5bb4eb4d6546e2d0a2d911b09797172a0a2a2b83
URL:
https://github.com/kamailio/kamailio/commit/5bb4eb4d6546e2d0a2d911b09797172…
Author: Camille Oudot <camille.oudot(a)orange.com>
Committer: Camille Oudot <camille.oudot(a)orange.com>
Date: 2017-04-03T20:49:51+02:00
core: parser - allow more chars in mime type
---
Modified: src/core/parser/parse_content.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5bb4eb4d6546e2d0a2d911b09797172…
Patch:
https://github.com/kamailio/kamailio/commit/5bb4eb4d6546e2d0a2d911b09797172…
---
diff --git a/src/core/parser/parse_content.c b/src/core/parser/parse_content.c
index edb109a..6546b01 100644
--- a/src/core/parser/parse_content.c
+++ b/src/core/parser/parse_content.c
@@ -38,7 +38,9 @@
#define is_mime_char(_c_) \
- (isalpha((int)_c_) || (_c_)=='-' || (_c_)=='+' || (_c_)=='.' ||
(_c_)=='_')
+ (isalnum((int)_c_) || (_c_)=='-' || (_c_)=='+' || (_c_)=='.' ||
(_c_)=='_' \
+ || (_c_)=='!' || (_c_)=='%' || (_c_)=='*' \
+ || (_c_)=='\'' || (_c_)=='`' || (_c_)=='~')
#define is_char_equal(_c_,_cs_) \
( (isalpha((int)_c_)?(((_c_)|0x20)==(_cs_)):((_c_)==(_cs_)))==1 )