Module: kamailio
Branch: 5.0
Commit: bf86b73c9746ad46f7ad7bff2dc76c92ba6d6955
URL:
https://github.com/kamailio/kamailio/commit/bf86b73c9746ad46f7ad7bff2dc76c9…
Author: Camille Oudot <camille.oudot(a)orange.com>
Committer: Camille Oudot <camille.oudot(a)orange.com>
Date: 2017-04-04T11:16:12+02:00
core: parser - allow more chars in mime type
(cherry picked from commit 5bb4eb4d6546e2d0a2d911b09797172a0a2a2b83)
---
Modified: src/core/parser/parse_content.c
---
Diff:
https://github.com/kamailio/kamailio/commit/bf86b73c9746ad46f7ad7bff2dc76c9…
Patch:
https://github.com/kamailio/kamailio/commit/bf86b73c9746ad46f7ad7bff2dc76c9…
---
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 )