FS-3847 --resolve

This commit is contained in:
Anthony Minessale committed 2012-01-28 13:09:12 -06:00
1 parent 09ad887948
commit 20737713ec
2 files changed
+16 -5

No files matched your search

+10 -3
View File
@@ -5139,15 +5139,22 @@ char *sofia_glue_get_url_from_contact(char *buf, uint8_t to_dup)
{
char *url = NULL, *e;
while((e = strchr(buf, '"'))) {
buf = e+1;
while(*buf == ' ') {
buf++;
}
if (*buf == '"') {
buf++;
while((e = strchr(buf, '"'))) {
buf = e+1;
}
}
while(*buf == ' ') {
buf++;
}
if ((url = strchr(buf, '<')) && (e = strchr(url, '>'))) {
if ((url = strchr(buf, '<')) && (e = switch_find_end_paren(url, '<', '>'))) {
url++;
if (to_dup) {
url = strdup(url);