URI unescape/escape

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

 



Hi,

When parsing/printing URI, I think there is something wrong in the "escape-print" functions. The "%" character is not properly escaped. Shouldn't the pjsip_url_print function use the pjsip_parser_const_t->pjsip_XXX_SPEC_ESC instead of pjsip_XXX_SPEC ?

Detail:
 - Parse: sip:foo at bar.com;val=abc%25def -> sip:foo at bar.com;val=abc%def
 - Print: sip:foo at bar.com;val=abc%def -> sip:foo at bar.com;val=abc%def
   The "%" char is accepted, thus not escaped !!

Anyone agree with this ?

Ananda



[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