浏览代码

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

(cherry picked from commit a9e900a3dd5c958f3188376c3c4d3179c68e2c32)
Daniel-Constantin Mierla 11 年之前
父节点
当前提交
493e54de18
共有 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;