[sr-dev] git:master:5bb4eb4d: core: parser - allow more chars in mime type
Camille Oudot
camille.oudot at orange.com
Mon Apr 3 21:22:14 CEST 2017
Module: kamailio
Branch: master
Commit: 5bb4eb4d6546e2d0a2d911b09797172a0a2a2b83
URL: https://github.com/kamailio/kamailio/commit/5bb4eb4d6546e2d0a2d911b09797172a0a2a2b83
Author: Camille Oudot <camille.oudot at orange.com>
Committer: Camille Oudot <camille.oudot at 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/5bb4eb4d6546e2d0a2d911b09797172a0a2a2b83.diff
Patch: https://github.com/kamailio/kamailio/commit/5bb4eb4d6546e2d0a2d911b09797172a0a2a2b83.patch
---
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 )
More information about the sr-dev
mailing list