فهرست منبع

lost: trimed spaces before reolving locationURI value

fixes GH2569 (#2569). Allow parse exmaples from RFC7840
Sergey Safarov 4 سال پیش
والد
کامیت
f9d424ac42
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/modules/lost/functions.c

+ 2 - 0
src/modules/lost/functions.c

@@ -298,6 +298,8 @@ int lost_held_function(struct sip_msg *_m, char *_con, char *_pidf, char *_url,
 					if(geo.len == 0) {
 						LM_WARN("%s element not found\n", HELD_TYPE_URI);
 						geo.s = NULL;
+					} else {
+						geo.s = lost_trim_content(geo.s, &geo.len);
 					}
 				}
 				if(xmlStrcmp(cur_node->name,