浏览代码

core: fixed bug in PV caching that broke the use of the $$ symbol

- Found and fixed by Hugh Waite @ Crocodile RCS
Peter Dunkley 12 年之前
父节点
当前提交
c059041a71
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pvapi.c

+ 4 - 0
pvapi.c

@@ -120,6 +120,10 @@ int pv_locate_name(str *in)
 		LM_ERR("missing pv marker [%.*s]\n", in->len, in->s);
 		return -1;
 	}
+	if(in->s[1]==PV_MARKER)
+	{
+		return 2;
+	}
 	pcount = 0;
 	if(in->s[1]==PV_LNBRACKET)
 	{