[OpenSIPS-Devel] [OpenSIPS/opensips] dfd795: pvars: fix incorrect mathching for "" strings
Razvan Crainea
razvan at opensips.org
Wed Oct 3 06:51:37 EDT 2018
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: dfd795feafa3229eee32144b3b2a42a0bd4c74ee
https://github.com/OpenSIPS/opensips/commit/dfd795feafa3229eee32144b3b2a42a0bd4c74ee
Author: Razvan Crainea <razvan at opensips.org>
Date: 2018-10-03 (Wed, 03 Oct 2018)
Changed paths:
M route.c
Log Message:
-----------
pvars: fix incorrect mathching for "" strings
Before this fix, opensips was reporting `"" !~ "[123]"` as `false`,
which is incorrect. On the other side, `"" =~ "[123]"` is reported on
`false` too, but this is correct. This commit makes the NULL and
0-lenght strings matching more consistent.
Kudos to Liviu Chircu for brainstorming this issue.
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the Devel
mailing list