소스 검색

parser/parse_addr_spec: comma allowd for start of tag value and mid tag value chars

Daniel-Constantin Mierla 11 년 전
부모
커밋
a9e900a3dd
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      parser/parse_addr_spec.c

+ 2 - 1
parser/parse_addr_spec.c

@@ -481,7 +481,8 @@ semicolon_add_param:
 					}
 					}
 					break;
 					break;
 				} else {
 				} else {
-					if(status==S_PARA_VALUE && param->type==TAG_PARAM) {
+					if((status==S_PARA_VALUE || status==PARA_VALUE_TOKEN)
+							&& param->type==TAG_PARAM) {
 						/* if comma is not separator, allow it as part of value
 						/* if comma is not separator, allow it as part of value
 						 * - some user agents use it */
 						 * - some user agents use it */
 						break;
 						break;