[OpenSIPS-Devel] [OpenSIPS/opensips] cc91b1: s.fill transformations: Allow whitespace in quoted...
    Liviu Chircu 
    liviu at opensips.org
       
    Tue Jun  2 18:15:59 CEST 2015
    
    
  
  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: cc91b1e1bd8bf8b6163d278b18602a29f38d7364
      https://github.com/OpenSIPS/opensips/commit/cc91b1e1bd8bf8b6163d278b18602a29f38d7364
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2015-06-02 (Tue, 02 Jun 2015)
  Changed paths:
    M transformations.c
    M trim.h
  Log Message:
  -----------
  s.fill transformations: Allow whitespace in quoted params
This patch actually fixes several issues:
    * allows the "s.fill" functions to be used for alignment purposes
    * bugfix: possible "s.fill" usage which caused infinite loop
    * new: trim.h string trimming macros
    * some code refactoring
Fixes #531
(cherry picked from commit ee4374f97d7f7fc8628ca0dfe1a50fedce8bebaf)
  Commit: cfdc74e37d21cccaa0954195bcb7265b04fe9673
      https://github.com/OpenSIPS/opensips/commit/cfdc74e37d21cccaa0954195bcb7265b04fe9673
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2015-06-02 (Tue, 02 Jun 2015)
  Changed paths:
    M transformations.c
  Log Message:
  -----------
  s.fill transformation: Prioritize string pvars over integer ones
Reason for this is that a pvar which holds a string is a more
particular occurrence than an int one, since integers can be
easily stringified.
This fixes some issues with pvars which have multiple internal
representations (e.g. $rm is "INVITE" and 1 at the same time)
Reported by Eric Tamme
(cherry picked from commit 0db7e0e38c0974ec393446237aa09bc5658c0d24)
Compare: https://github.com/OpenSIPS/opensips/compare/5f442bfc6f74...cfdc74e37d21
    
    
More information about the Devel
mailing list