[OpenSIPS-Devel] [OpenSIPS/opensips] cfbd70: CSV parser: Relax the RFC 4180 implementation
Liviu Chircu
noreply at github.com
Wed Aug 7 12:38:40 EDT 2019
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: cfbd704945481c97a241892da50efcb3dd84eead
https://github.com/OpenSIPS/opensips/commit/cfbd704945481c97a241892da50efcb3dd84eead
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).
Fixes #1794
(cherry picked from commit 4072d9e54e631b20e71d3abc181d1f329084c95b)
More information about the Devel
mailing list