Bugfix: URL-unescape nameaddr display names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Asterisk will escape URL-unsafe characters in nameaddr display names.
The attached patch ensures PJSIP unescapes URL-escaped display names
when it encounters them:

Index: pjsip/src/pjsip/sip_parser.c
===================================================================
@@ -1485,8 +1485,7 @@
     /* Trim the leading and ending quote */
     name_addr->display.ptr++;
     name_addr->display.slen -= 2;
-
+    /* Unescape */
+        name_addr->display = pj_str_unescape (pool, &name_addr->display);
     } else if (*scanner->curptr != '<') {
     int next;
     pj_str_t dummy;




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux