[OpenSIPS-Devel] [OpenSIPS/opensips] 62eb40: scripting operators: Fix some bugs with "" compari...

Liviu Chircu noreply at github.com
Wed Oct 16 11:52:31 EDT 2019


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 62eb40f40f7548b5948048e92667a1f564a378db
      https://github.com/OpenSIPS/opensips/commit/62eb40f40f7548b5948048e92667a1f564a378db
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-10-16 (Wed, 16 Oct 2019)

  Changed paths:
    M route.c

  Log Message:
  -----------
  scripting operators: Fix some bugs with "" comparisons

The =~ and !~ operators were misbehaving when an empty string ("") was
present on the LHS, and were always returning `False`.  A similar fix
was done in dfd795fea, for OpenSIPS 3.0+.

Fixes #1860





More information about the Devel mailing list