Module: kamailio Branch: 4.4 Commit: 4f785ac67696e5de8aa6e888de69a6180214784f URL: https://github.com/kamailio/kamailio/commit/4f785ac67696e5de8aa6e888de69a6180214784f
Author: Camille Oudot <camille.ou...@orange.com> Committer: Camille Oudot <camille.ou...@orange.com> Date: 2017-04-04T11:19:18+02:00 core: parser - allow more chars in mime type (cherry picked from commit 5bb4eb4d6546e2d0a2d911b09797172a0a2a2b83) --- Modified: parser/parse_content.c --- Diff: https://github.com/kamailio/kamailio/commit/4f785ac67696e5de8aa6e888de69a6180214784f.diff Patch: https://github.com/kamailio/kamailio/commit/4f785ac67696e5de8aa6e888de69a6180214784f.patch --- diff --git a/parser/parse_content.c b/parser/parse_content.c index edb109a..6546b01 100644 --- a/parser/parse_content.c +++ b/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 ) _______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev