[asterisk-bugs] [Asterisk 0014972]: FIELDQTY not function correctly with escape characters from variables.

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Apr 28 10:04:55 CDT 2009


The following issue has been CLOSED 
====================================================================== 
http://bugs.digium.com/view.php?id=14972 
====================================================================== 
Reported By:                zktech
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   14972
Category:                   Functions/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.0.7 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-04-25 09:30 CDT
Last Modified:              2009-04-28 10:04 CDT
====================================================================== 
Summary:                    FIELDQTY not function correctly with escape
characters from variables.
Description: 
I am using the FIELDQTY to dynamically parse headers and other strings.
When I pass in the delimeter in a variable it does not work correctly if
the variable has a escape character in it..

Example 1: ARG1 = header;data;data ARG2=\;
exten => s,n,Set(l_cnt=${FIELDQTY(ARG1,ARG2)})

This should and did in version 1.4 return 3 to l_cnt
In 1.6 it returns 1 to l_cnt

Example 2: ARG1 = header;data;data
exten => s,n,Set(l_cnt=${FIELDQTY(ARG1,\;)})

This returns 3 to l_cnt as expected. This is very broken as I can not now
send values with escape charcters to this function.

Does this bug also effect any other functions that use to allow escape
characters coming in variables?

Any help is apperciated.
Thanks
Bryant

====================================================================== 

---------------------------------------------------------------------- 
 (0103877) tilghman (administrator) - 2009-04-28 10:04
 http://bugs.digium.com/view.php?id=14972#c103877 
---------------------------------------------------------------------- 
The only thing I can think of is that someone patched your 1.4 codebase to
do that.  The 1.4 codebase in our repository does not work that way. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-28 10:04 tilghman       Note Added: 0103877                          
2009-04-28 10:04 tilghman       Status                   assigned => closed  
2009-04-28 10:04 tilghman       Resolution               open => no change
required
======================================================================




More information about the asterisk-bugs mailing list