Browse code

- fixed bug in nameaddr.uri: <sip:abc@123>;param is equal to sip:abc@123;param, i.e. remove params from uri when no <

Tomas Mandys authored on 05/09/2006 22:49:04
Showing 1 changed files
... ...
@@ -968,7 +968,10 @@ int select_nameaddr_uri(str* res, select_t* s, struct sip_msg* msg)
968 968
 	
969 969
 	p=find_not_quoted(res, '<');
970 970
 	if (!p) {
971
-		DBG("select_nameaddr_uri: no < found, whole string is uri\n");
971
+		DBG("select_nameaddr_uri: no < found, string up to first semicolon is uri\n");
972
+		p = q_memchr(res->s, ';', res->len);
973
+		if (p)
974
+			res->len = p-res->s;
972 975
 		return 0;
973 976
 	}
974 977