[OpenSIPS-Devel] [OpenSIPS/opensips] b4e4de: CSV parser: Relax the RFC 4180 implementation

Liviu Chircu noreply at github.com
Wed Aug 7 12:37:19 EDT 2019


  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: b4e4de3b55aae3c9796bf6665dd1be5ac10d549a
      https://github.com/OpenSIPS/opensips/commit/b4e4de3b55aae3c9796bf6665dd1be5ac10d549a
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-08-07 (Wed, 07 Aug 2019)

  Changed paths:
    M lib/csv.c
    M lib/test/test_csv.c

  Log Message:
  -----------
  CSV parser: Relax the RFC 4180 implementation

Do not implement RFC 4180 down to the letter (e.g. double-quotes are
ONLY allowed within a field if they are escaped using another
double-quote).  Rather, only follow this rule if a field _begins_ with a
quote.  This helps maintain backwards-compatibility with the previous
OpenSIPS CSV parser, and is also desirable in many situations (e.g.
parsing a WWW-Authenticate header).

Fix #1794

(cherry picked from commit 4072d9e54e631b20e71d3abc181d1f329084c95b)





More information about the Devel mailing list