Browse Source

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

- Found and fixed by Hugh Waite @ Crocodile RCS
Peter Dunkley 12 năm trước cách đây
mục cha
commit
c059041a71
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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)
 	{