Opened 14 years ago

Closed 14 years ago

#1116 closed defect (fixed)

Bug in regenerating elements of some headers when incoming request contains escaped characters (thanks Ferguen Adel for the report)

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-1.8
Component: pjsip Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description (last modified by bennylp)

When an incoming request contains header with escaped character, PJSIP may generate response containing unescaped header. For example:

Request:

Via: ....;branch=12%143

Response:

Via: ....;branch=12~3

Note the strange character between 2 and 3.

Change History (2)

comment:1 Changed 14 years ago by bennylp

  • Description modified (diff)

comment:2 Changed 14 years ago by bennylp

  • Resolution set to fixed
  • Status changed from new to closed

(In [3301]) Fixed #1116 (Bug in regenerating elements of some headers when incoming request contains escaped characters (thanks Ferguen Adel for the report)):

  • Fixed the printing part of Via "branch" parameter and To/From? "tag" parameter, since these parameters are important for transaction/dialog identification
  • Note that if the escaping sequence describes a character that otherwise is a valid token, that token would still be printed unescaped, hence the problem would still persist. But sender really shouldn't send this kind of escaped sequence as it really is asking for trouble.
Note: See TracTickets for help on using tickets.