Loading codec/c++/sip_codets.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -185,6 +185,10 @@ bool is_tel_scheme (const char * pszScheme) { #define SIPREG_GPARAM_VALUE "(([" SIPCHARS_ALFANUM ".!%*_+`'~\\-:]+)|(" SIPREG_QUOTED_STRING "))" // content type parameter #define SIPREG_M_PARAMETER SIPREG_TOKEN SIPREG_EQUAL "(?:" SIPREG_TOKEN "|" SIPREG_QUOTED_STRING ")" bool detect_comma(Buffer & buffer) throw (DecodeError) { Regex reg_comma ("^" SIPREG_COMMA); Loading Loading @@ -1772,7 +1776,7 @@ void ContentLength::PreDecode (Buffer& buffer) throw (DecodeError) void ContentType::PreDecodeField (int id, Buffer& buffer) throw (DecodeError) { static Regex reg_ctype ("^" SIPREG_TOKEN "/" SIPREG_TOKEN); static Regex reg_ctype ("^" SIPREG_TOKEN "/" SIPREG_TOKEN "(" SIPREG_SEMI SIPREG_M_PARAMETER ")*"); if (id == id_mediaType) { reg_ctype.AssertMatch (buffer, this); Loading Loading
codec/c++/sip_codets.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -185,6 +185,10 @@ bool is_tel_scheme (const char * pszScheme) { #define SIPREG_GPARAM_VALUE "(([" SIPCHARS_ALFANUM ".!%*_+`'~\\-:]+)|(" SIPREG_QUOTED_STRING "))" // content type parameter #define SIPREG_M_PARAMETER SIPREG_TOKEN SIPREG_EQUAL "(?:" SIPREG_TOKEN "|" SIPREG_QUOTED_STRING ")" bool detect_comma(Buffer & buffer) throw (DecodeError) { Regex reg_comma ("^" SIPREG_COMMA); Loading Loading @@ -1772,7 +1776,7 @@ void ContentLength::PreDecode (Buffer& buffer) throw (DecodeError) void ContentType::PreDecodeField (int id, Buffer& buffer) throw (DecodeError) { static Regex reg_ctype ("^" SIPREG_TOKEN "/" SIPREG_TOKEN); static Regex reg_ctype ("^" SIPREG_TOKEN "/" SIPREG_TOKEN "(" SIPREG_SEMI SIPREG_M_PARAMETER ")*"); if (id == id_mediaType) { reg_ctype.AssertMatch (buffer, this); Loading