Module: kamailio Branch: master Commit: 960b761e527b903dc8e53014cc0b08df8b0d81b3 URL: https://github.com/kamailio/kamailio/commit/960b761e527b903dc8e53014cc0b08df8b0d81b3
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: GitHub <nore...@github.com> Date: 2017-04-03T21:22:10+02:00 Merge pull request #1055 from kamailio/co/more_mime_chars core: parser - allow more chars in mime type --- Modified: src/core/parser/parse_content.c --- Diff: https://github.com/kamailio/kamailio/commit/960b761e527b903dc8e53014cc0b08df8b0d81b3.diff Patch: https://github.com/kamailio/kamailio/commit/960b761e527b903dc8e53014cc0b08df8b0d81b3.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 ) _______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev