Explorar o código

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

- Found and fixed by Hugh Waite @ Crocodile RCS
Peter Dunkley %!s(int64=12) %!d(string=hai) anos
pai
achega
c059041a71
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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)
 	{