Opened 9 years ago

Closed 9 years ago

#1152 closed defect (fixed)

The base64 decoder should ignore whitespaces in the input (thanks Johan Lantz for the suggestion)

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

Description

It is common for an agent to place whitespaces (typically newlines) in the base64 encoded input. Currently this would raise assertion in the base256_char() function.

Change History (1)

comment:1 Changed 9 years ago by bennylp

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

(In [3356]) Fixed #1152 (The base64 decoder should ignore whitespaces in the input). In fact, the base64 decoder now will silently ignore/skip any bad characters.

Note: See TracTickets for help on using tickets.